]> Dogcows Code - chaz/openbox/blobdiff - otk/messagedialog.hh
provide == and != for DialogButtons
[chaz/openbox] / 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.024996 seconds and 4 git commands to generate.