[gtk+] GtkMenu: Set widget state as state flags.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkMenu: Set widget state as state flags.
- Date: Sat, 4 Dec 2010 15:07:38 +0000 (UTC)
commit 9ae2e29f44a82f785a34c5d704bb4b3babd0f2d3
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Oct 31 14:43:55 2010 +0100
GtkMenu: Set widget state as state flags.
gtk/gtkmenu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 13998ee..83988eb 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -1192,9 +1192,9 @@ gtk_menu_attach_to_widget (GtkMenu *menu,
g_object_set_data_full (G_OBJECT (attach_widget), I_(ATTACHED_MENUS), list,
(GDestroyNotify) g_list_free);
- if (gtk_widget_get_state (GTK_WIDGET (menu)) != GTK_STATE_NORMAL)
- gtk_widget_set_state (GTK_WIDGET (menu), GTK_STATE_NORMAL);
-
+ if (gtk_widget_get_state_flags (GTK_WIDGET (menu)) != 0)
+ gtk_widget_set_state_flags (GTK_WIDGET (menu), 0, TRUE);
+
/* we don't need to set the style here, since
* we are a toplevel widget.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]