]> Dogcows Code - chaz/openbox/commitdiff
provide == and != for DialogButtons
authorDana Jansens <danakj@orodu.net>
Sun, 16 Feb 2003 16:36:07 +0000 (16:36 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Feb 2003 16:36:07 +0000 (16:36 +0000)
otk/messagedialog.hh

index f49b45934253a8d61d362eaa7b6129e100665f51..4a152bd46b152998bb73f0f5a0c6dc1702c23c7f 100644 (file)
@@ -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 {
This page took 0.023796 seconds and 4 git commands to generate.