diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-04-12 16:17:02 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-04-12 16:25:53 +0200 |
commit | e7f9c0f87b34d4f678c85346c557261cb73170e3 (patch) | |
tree | 2b0515c4fc0e220ee13c7dfe35bd643cdcd7aa16 | |
parent | 8da23df8cd876f167fcdfc231f2135767805f5fd (diff) | |
download | nautilus-e7f9c0f87b34d4f678c85346c557261cb73170e3.tar.gz |
toolbar: use gtk_widget_is_visible for robustness
It checks the parents visibility as well.
-rw-r--r-- | src/nautilus-toolbar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index 657a308bc..d36b56c6a 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -603,7 +603,7 @@ update_operations (NautilusToolbar *self) * 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))) { + if (gtk_widget_is_visible (GTK_WIDGET (self))) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->priv->operations_button), TRUE); } |