Re: Help with modal dialog
- From: Murray Cumming <murrayc murrayc com>
- To: "Matthew A. Postiff" <postiffm comcast net>, gtk-app-devel-list gnome org
- Subject: Re: Help with modal dialog
- Date: Sun, 24 Apr 2016 11:34:51 +0200
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]