X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdialog.cpp;h=fed9c859f0003ae73e63542e5a0a011b6d0a3485;hb=3ac64a18ea1825174b84adb8570368df51e66231;hp=0b22e9874a8d1578266fe6b98a95ddca84cf3cc5;hpb=9ef9547b31544637aca600ac65107d5b8028c39a;p=libs%2Fgltk.git diff --git a/source/dialog.cpp b/source/dialog.cpp index 0b22e98..fed9c85 100644 --- a/source/dialog.cpp +++ b/source/dialog.cpp @@ -6,14 +6,24 @@ using namespace std; namespace Msp { namespace GLtk { -Dialog::Dialog(): - stale(false) -{ } - void Dialog::add_button(Button &button, int code) { add(button); - button.signal_clicked.connect(sigc::bind(sigc::mem_fun(this, &Dialog::response), code)); + connect_button(button, code); +} + +void Dialog::add_button(unique_ptr