X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Fmessagedialog.hh;fp=otk%2Fmessagedialog.hh;h=4a152bd46b152998bb73f0f5a0c6dc1702c23c7f;hb=dfe7f46bb735c8074e7d79ca64de249dd7a8de6a;hp=f49b45934253a8d61d362eaa7b6129e100665f51;hpb=c8789ccdbf40c8f0730cbe4c68b8f43b2d9a7f85;p=chaz%2Fopenbox 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 {