diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2015-08-14 09:14:02 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2015-08-14 09:14:02 -0300 |
commit | 264aca677b46e8310a55dfd0a5b00ce2bfca97be (patch) | |
tree | 40a8e5857c4c27007e0975b08a6f2062463516fd | |
parent | 4aa559067c1b2cbc5d04b44465749502dba85601 (diff) | |
download | nautilus-264aca677b46e8310a55dfd0a5b00ce2bfca97be.tar.gz |
toolbar: fixed insensitive menu
Seems like the transform function wasn't clearing
correctly the popover.
To fix that, clear the previous popover before setting
the new one.
-rw-r--r-- | src/nautilus-toolbar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index c7c18a02e..6b40696db 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -858,6 +858,7 @@ nautilus_toolbar_view_widget_transform_to (GBinding *binding, view_widget = g_value_get_object (from_value); gtk_widget_set_sensitive (toolbar->priv->view_button, view_widget != NULL); + gtk_menu_button_set_popover (GTK_MENU_BUTTON (toolbar->priv->view_button), NULL); if (view_widget) { if (!GTK_IS_POPOVER (view_widget)) { |