X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdialog.cpp;h=7b47b66e9571c80800ae9bcd152fd0e1ea06b250;hb=HEAD;hp=5f63dcf75ed519fbf52c65e723422304fe395234;hpb=9f38197854e699a6093a906ab43f4238f3cd2388;p=libs%2Fgltk.git diff --git a/source/dialog.cpp b/source/dialog.cpp index 5f63dcf..fed9c85 100644 --- a/source/dialog.cpp +++ b/source/dialog.cpp @@ -9,7 +9,21 @@ namespace GLtk { 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