X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fmessagedialog.hh;h=bc8cea5ee241b15b4c6aaf3d0789f57989afa9dd;hb=5cd8680f7444237773cec849fd0cf8a2e6b2e9c3;hp=cc8adc7087807cbdd042e2c5c446a90b7daecd8d;hpb=c71738f3f47535492eadcf0e463282b681d2271f;p=chaz%2Fopenbox diff --git a/otk/messagedialog.hh b/otk/messagedialog.hh index cc8adc70..bc8cea5e 100644 --- a/otk/messagedialog.hh +++ b/otk/messagedialog.hh @@ -18,12 +18,13 @@ class DialogButton { public: DialogButton(char *label) : _label(label), _default(false) {} - DialogButton(ustring label) : _label(label), _default(false) - {} - DialogButton(ustring label, bool def) : _label(label), _default(def) + DialogButton(char *label, bool def) : _label(label), _default(def) {} inline const ustring& label() const { return _label; } inline const bool& isDefault() const { return _default; } + + bool operator==(const DialogButton &o) const { return _label == o._label; } + bool operator!=(const DialogButton &o) const { return!(_label == o._label); } }; class MessageDialog : public Widget {