Re: GtkMenu question



14.12.09, 07:50, "Julien Bramary" <julien_bramary msn com>:
> It works!
> ...
> static void choose_deactivate_handler(void *GtkWidget, gpointer value) {
>     g_idle_add(idle_chooser, NULL);
> }

Nice!
Small note: you may call g_idle_add_full(G_PRIORITY_HIGH, idle_chooser, NULL, NULL) to ensure no other idle is executing between your iterations.

http://library.gnome.org/devel/glib/stable/glib-The-Main-Event-Loop.html#G-PRIORITY-HIGH:CAPS

-- 
Artur


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