diff options
Diffstat (limited to 'src/nautilus-toolbar.c')
-rw-r--r-- | src/nautilus-toolbar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index ac4221f97..657a308bc 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -30,7 +30,6 @@ #include "nautilus-window.h" #include "nautilus-progress-info-widget.h" #include "nautilus-application.h" -#include "nautilus-desktop-window.h" #include <libnautilus-private/nautilus-global-preferences.h> #include <libnautilus-private/nautilus-ui-utilities.h> @@ -600,8 +599,11 @@ update_operations (NautilusToolbar *self) TRUE); gtk_widget_queue_draw (self->priv->operations_icon); - /* Show the popover at start to increase visibility */ - if (!NAUTILUS_IS_DESKTOP_WINDOW (self->priv->window)) { + /* Show the popover at start to increase visibility. + * Check whether the toolbar is visible or not before showing the + * popover. This can happens if the window has the disables-chrome + * property set. */ + if (gtk_widget_get_visible (GTK_WIDGET (self))) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->priv->operations_button), TRUE); } |