summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodeboybebop <codeboy.bebop@gmail.com>2022-07-17 22:06:30 +0000
committerAntónio Fernandes <antoniof@gnome.org>2022-07-17 22:06:30 +0000
commit76c59b8ecb3ad86b0e3ceab9c9a1efe53c7713dc (patch)
tree3c79144483fb32b409d055ea91de43045f836464
parenta6c9418ed52bb2c9428bf86395f0ac370b2faa34 (diff)
downloadnautilus-76c59b8ecb3ad86b0e3ceab9c9a1efe53c7713dc.tar.gz
toolbar: Fix wrong cast of GtkMenuButton
In some parts of the code, operations_button was considered as a member of the child class of class GtkToggleButton. Which is incorrect in gtk4. Using visibility of popover gives the intended functionality. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2313
-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 81af953eb..d84742143 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -448,7 +448,7 @@ on_progress_info_finished (NautilusToolbar *self,
/* If destination is null, don't show a notification. This happens when the
* operation is a trash operation, which we already show a diferent kind of
* notification */
- if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->operations_button)) &&
+ if (!gtk_widget_is_visible (self->operations_popover) &&
folder_to_open != NULL)
{
add_operations_button_attention_style (self);