FW: gtk_timeout_add



-----Original Message-----
From: Lourdes Maldonado 
Sent: Friday, July 26, 2002 5:13 PM
To: 'Gtk-List'
Subject: gtk_timeout_add

 
Should functions started with gtk_timeout_add have gdk_thread_enter/leave surrounding gtk function calls?  For examples
 
Gint
Some_functionTimer(gpointer data)
{
 
 
gdk_threads_enter();
 
gtk_widget_show(someWidget);
 
gdk_threads_leave();
 
return TRUE;
}
 
 
main()
{
gtk_widget_show(mainScreen);
 
gdk_threads_enter();
 
gtk_main;
 
gdk_threads_leave();
 
}
 
void
on_main_screen_show_callback()
{
gtk_timeout_add(1000, SomeFunctionTimer, NULL);
 
}
 
Thanks for any help,
 
Lourdes



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