diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-12-22 19:10:43 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-12-22 19:10:43 +0000 |
commit | 721c3bc10182cacf1a98baddde3c94e59797ddb7 (patch) | |
tree | 78b2e3ae3c00133a58f09653aff664e4ab0305e9 /gtk/gtkmenuitem.c | |
parent | 7854bd1b6e6102aff426bf6a48606c4a9b12b7c2 (diff) | |
download | gtk+-721c3bc10182cacf1a98baddde3c94e59797ddb7.tar.gz |
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.
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r-- | gtk/gtkmenuitem.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index ae87c05304..35e5bff58a 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -902,7 +902,7 @@ gtk_real_menu_item_select (GtkItem *item) { GdkEvent *event = gtk_get_current_event (); - menu_item->timer = g_timeout_add (popup_delay, + menu_item->timer = gdk_threads_add_timeout (popup_delay, gtk_menu_item_select_timeout, menu_item); if (event && @@ -1018,8 +1018,6 @@ gtk_menu_item_select_timeout (gpointer data) GtkMenuItem *menu_item; GtkWidget *parent; - GDK_THREADS_ENTER (); - menu_item = GTK_MENU_ITEM (data); parent = GTK_WIDGET (menu_item)->parent; @@ -1032,8 +1030,6 @@ gtk_menu_item_select_timeout (gpointer data) GTK_MENU_SHELL (menu_item->submenu)->ignore_enter = TRUE; } - GDK_THREADS_LEAVE (); - return FALSE; } |