diff options
Diffstat (limited to 'gtk/gtkmenutoolbutton.c')
-rw-r--r-- | gtk/gtkmenutoolbutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c index 0144409626..3e3cf07751 100644 --- a/gtk/gtkmenutoolbutton.c +++ b/gtk/gtkmenutoolbutton.c @@ -344,7 +344,7 @@ arrow_button_toggled_cb (GtkToggleButton *togglebutton, return; if (gtk_toggle_button_get_active (togglebutton) && - !GTK_WIDGET_VISIBLE (priv->menu)) + !gtk_widget_get_visible (GTK_WIDGET (priv->menu))) { /* we get here only when the menu is activated by a key * press, so that we can select the first menu item */ @@ -544,7 +544,7 @@ gtk_menu_tool_button_set_menu (GtkMenuToolButton *button, if (priv->menu != GTK_MENU (menu)) { - if (priv->menu && GTK_WIDGET_VISIBLE (priv->menu)) + if (priv->menu && gtk_widget_get_visible (GTK_WIDGET (priv->menu))) gtk_menu_shell_deactivate (GTK_MENU_SHELL (priv->menu)); if (priv->menu) |