Replace a lot of idle and timeout calls by the new gdk_threads api.
2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
This commit is contained in:
committed by
Matthias Clasen
parent
7854bd1b6e
commit
721c3bc101
@ -1490,12 +1490,8 @@ gtk_real_button_released (GtkButton *button)
|
||||
static gboolean
|
||||
button_activate_timeout (gpointer data)
|
||||
{
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
gtk_button_finish_activate (data, TRUE);
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -1520,7 +1516,7 @@ gtk_real_button_activate (GtkButton *button)
|
||||
|
||||
gtk_grab_add (widget);
|
||||
|
||||
button->activate_timeout = g_timeout_add (ACTIVATE_TIMEOUT,
|
||||
button->activate_timeout = gdk_threads_add_timeout (ACTIVATE_TIMEOUT,
|
||||
button_activate_timeout,
|
||||
button);
|
||||
button->button_down = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user