prefs_diag->delete_event().connect(
sigc::ptr_fun(on_prefs_cancel_btn_clicked) );
However, the compiler said:
error: 'class Gtk::Dialog' has no member named 'delete_event'
The problem is that the dialog's X button has to be clicked twice to close
the dialog.
According to my gtkmm documentation you must use
widget->signal_delete_event<file:///D:/Programs/GTK/share/doc/gtkmm-2.4/docs/reference/html/classGtk_1_1Widget.html#6b266f24d662c145fa301ca0bd011716>
()
If this is not the solution - try explicitly convert prefs_diag to Widget*.
--
WBR, Pavlo Korzhyk
ICQ#155870780
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list