summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-16 16:36:07 +0000
committerDana Jansens <danakj@orodu.net>2003-02-16 16:36:07 +0000
commitdfe7f46bb735c8074e7d79ca64de249dd7a8de6a (patch)
treec2add2f14c02a72e5d352798ef858fc7eec36227 /otk
parentc8789ccdbf40c8f0730cbe4c68b8f43b2d9a7f85 (diff)
provide == and != for DialogButtons
Diffstat (limited to 'otk')
-rw-r--r--otk/messagedialog.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/otk/messagedialog.hh b/otk/messagedialog.hh
index f49b4593..4a152bd4 100644
--- a/otk/messagedialog.hh
+++ b/otk/messagedialog.hh
@@ -22,6 +22,9 @@ public:
{}
inline const ustring& label() const { return _label; }
inline const bool& isDefault() const { return _default; }
+
+ bool operator==(const DialogButton &o) { return _label == o._label; }
+ bool operator!=(const DialogButton &o) { return !(_label == o._label); }
};
class MessageDialog : public Widget {