summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-04-12 16:17:02 +0200
committerCarlos Soriano <csoriano@gnome.org>2016-04-14 10:35:18 +0200
commit9091fe3d3c9f6c02d36841bec1779c3439569ea2 (patch)
tree8f832c4053affba501d66652b295a14adcaa3a3c
parentd8f481b13d81017d31eee4809031618ab5423450 (diff)
downloadnautilus-9091fe3d3c9f6c02d36841bec1779c3439569ea2.tar.gz
toolbar: use gtk_widget_is_visible for robustness
It checks the parents visibility as well. https://bugzilla.gnome.org/show_bug.cgi?id=712620
-rw-r--r--src/nautilus-toolbar.c2
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);
}