Re: Can't quite get my head around this, can anyone help?



Michael Torrie wrote:
Well inside a callback you can return TRUE which stops signal
propagation right here.  Or FALSE, which lets it continue.  So you could
do it two ways.  One would be to to display a GtkDialog, and use
gtk_dialog_run() from within your callback [1].  The other would be to
create new gtk main loop instance from within your callback to allow
another window to be displayed and run, and then based have that
window's event callbacks set a flag and end the main loop, which you can
then use in the original callback to end the propagation.

Forgot the references.

[1] http://library.gnome.org/devel/gtk/stable/GtkDialog.html#gtk-dialog-run

Also the glib main loop documentation is here:
http://library.gnome.org/devel/glib/stable/glib-The-Main-Event-Loop.html
specifically, g_main_loop_new()



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