From dfe7f46bb735c8074e7d79ca64de249dd7a8de6a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 16 Feb 2003 16:36:07 +0000 Subject: [PATCH] provide == and != for DialogButtons --- otk/messagedialog.hh | 3 +++ 1 file changed, 3 insertions(+) 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 { -- 2.39.2