[nautilus] toolbar: Fix wrong cast of GtkMenuButton
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] toolbar: Fix wrong cast of GtkMenuButton
- Date: Sun, 17 Jul 2022 22:06:31 +0000 (UTC)
commit 76c59b8ecb3ad86b0e3ceab9c9a1efe53c7713dc
Author: codeboybebop <codeboy bebop gmail com>
Date: Sun Jul 17 22:06:30 2022 +0000
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
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 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]