[nautilus/wip/csoriano/view-menu: 3/5] toolbar: fixed insensitive menu



commit 264aca677b46e8310a55dfd0a5b00ce2bfca97be
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Aug 14 09:14:02 2015 -0300

    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.

 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 c7c18a0..6b40696 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)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]