[nautilus/wip/antoniof/gnome-42: 33/72] Revert "toolbar: Stop using GtkToggleButton method on GtkMenuButton"




commit fefac03388e2b73ce7f352d384f8bae18ee6fd2b
Author: António Fernandes <antoniof gnome org>
Date:   Fri Feb 11 19:01:45 2022 +0000

    Revert "toolbar: Stop using GtkToggleButton method on GtkMenuButton"
    
    This reverts commit 447ebe7a67b6523d40fee53fee835196507bba40.

 src/nautilus-toolbar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index 72e76955e..4cfa50c56 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -1416,5 +1416,5 @@ nautilus_toolbar_is_menu_visible (NautilusToolbar *self)
 gboolean
 nautilus_toolbar_is_operations_button_active (NautilusToolbar *self)
 {
-    return gtk_widget_is_visible (GTK_WIDGET (self->operations_popover));
+    return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->operations_button));
 }


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