[nautilus] toolbar: use gtk_widget_is_visible for robustness



commit 9091fe3d3c9f6c02d36841bec1779c3439569ea2
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue Apr 12 16:17:02 2016 +0200

    toolbar: use gtk_widget_is_visible for robustness
    
    It checks the parents visibility as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712620

 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 657a308..d36b56c 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);
                 }


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