provide == and != for DialogButtons
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
otk/messagedialog.hh
→
otk/messagedialog.hh
@@ -22,6 +22,9 @@ 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) { return _label == o._label; } + bool operator!=(const DialogButton &o) { return !(_label == o._label); } }; class MessageDialog : public Widget {