From 2abf1056c90487ee947401698389e5e018b3a22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sun, 20 Dec 2009 21:17:34 +0100 Subject: [PATCH] Fix compilation warning: cast to GTK_WIDGET() --- gtk/gtkmenushell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 4f7d82c8ea..f5dbce8060 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -825,7 +825,7 @@ _gtk_menu_shell_update_mnemonics (GtkMenuShell *menu_shell) ((target->active_menu_item && !found) || (target == menu_shell && !target->parent_menu_shell && - gtk_widget_has_grab (target))); + gtk_widget_has_grab (GTK_WIDGET (target)))); /* While menus are up, only show underlines inside the menubar, * not in the entire window. @@ -834,7 +834,7 @@ _gtk_menu_shell_update_mnemonics (GtkMenuShell *menu_shell) _gtk_label_mnemonics_visible_apply_recursively (GTK_WIDGET (target), mnemonics_visible); else - gtk_window_set_mnemonics_visible (GTK_WINDOW (gtk_widget_get_toplevel (target)), + gtk_window_set_mnemonics_visible (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (target))), mnemonics_visible); if (target->active_menu_item)