From: Dana Jansens Date: Sun, 16 Feb 2003 16:36:07 +0000 (+0000) Subject: provide == and != for DialogButtons X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=dfe7f46bb735c8074e7d79ca64de249dd7a8de6a;p=chaz%2Fopenbox provide == and != for DialogButtons --- 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 {