diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2003-02-05 23:48:11 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-02-05 23:48:11 +0000 |
commit | b414adc89751bdf24eb4d29c63395d7d3b767c6a (patch) | |
tree | 2bb46061805eef9dac10f2c0d36c7a583c71e430 /gtk/gtkmenuitem.c | |
parent | 5fbf845d5cf155e0034c8ad81ffdd70229442705 (diff) | |
download | gtk+-b414adc89751bdf24eb4d29c63395d7d3b767c6a.tar.gz |
Replace uses of gtk_timeout_* and gtk_idle_* by their non-deprecated
GLib counterparts. Fully deprecate gtk_timeout_* and gtk_idle_*.
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r-- | gtk/gtkmenuitem.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 413d44a14b..25557ffd9e 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -744,7 +744,7 @@ gtk_real_menu_item_select (GtkItem *item) gint popup_delay; if (menu_item->timer) - gtk_timeout_remove (menu_item->timer); + g_source_remove (menu_item->timer); popup_delay = get_popup_delay (menu_item); @@ -752,9 +752,9 @@ gtk_real_menu_item_select (GtkItem *item) { GdkEvent *event = gtk_get_current_event (); - menu_item->timer = gtk_timeout_add (popup_delay, - gtk_menu_item_select_timeout, - menu_item); + menu_item->timer = g_timeout_add (popup_delay, + gtk_menu_item_select_timeout, + menu_item); if (event && event->type != GDK_BUTTON_PRESS && event->type != GDK_ENTER_NOTIFY) @@ -786,7 +786,7 @@ gtk_real_menu_item_deselect (GtkItem *item) { if (menu_item->timer) { - gtk_timeout_remove (menu_item->timer); + g_source_remove (menu_item->timer); menu_item->timer = 0; } else @@ -898,7 +898,7 @@ gtk_menu_item_popup_submenu (gpointer data) menu_item = GTK_MENU_ITEM (widget); if (menu_item->timer) - gtk_timeout_remove (menu_item->timer); + g_source_remove (menu_item->timer); menu_item->timer = 0; if (GTK_WIDGET_IS_SENSITIVE (menu_item->submenu)) |