Re: Help with modal dialog



On Do, 2016-04-21 at 20:52 -0400, Matthew A. Postiff wrote:
    g_signal_connect((gpointer)(syslogdialog->getDialog()),
"close",        G_CALLBACK (on_close_system_log_activate),
gpointer(this));
    g_signal_connect((gpointer)(syslogdialog->getDialog()),
"delete-event", G_CALLBACK (on_close_system_log_activate),
gpointer(this));
    syslogdialog->run();

The delete-event signal handler needs to return a gboolean. The C API
doesn't do any checking of the signature of the signal handler's
function pointer. However, gtkmm does offer this compile-time type
safety.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]