all repos — openbox @ cee0482c78b4c0a0c69724f16ef7eef5919278c1

openbox fork - make it a bit more like ryudo

make DialogButtons take char*'s meaning that the label will always be Utf-8
Dana Jansens danakj@orodu.net
commit

cee0482c78b4c0a0c69724f16ef7eef5919278c1

parent

213df2814b002da2c5f324210d44559f9d651e21

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M otk/messagedialog.hhotk/messagedialog.hh

@@ -18,9 +18,7 @@ bool _default;

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; }