[nautilus/wip/antoniof/experimental-gtk4-build: 4/55] toolbar: Stop using GtkToggleButton method on GtkMenuButton
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/experimental-gtk4-build: 4/55] toolbar: Stop using GtkToggleButton method on GtkMenuButton
- Date: Sat, 1 Jan 2022 21:47:00 +0000 (UTC)
commit fec13118bf93fb7e67c46865a0f0040d707be380
Author: António Fernandes <antoniof gnome org>
Date: Fri Dec 24 00:03:52 2021 +0000
toolbar: Stop using GtkToggleButton method on GtkMenuButton
In GTK 4 the later is not a subclass of the former and it has got no
equivalent method.
So, check whether the popover is visible, should be equivalent, I hope.
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 461cd8627..7e180efe0 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -1417,5 +1417,5 @@ nautilus_toolbar_is_menu_visible (NautilusToolbar *self)
gboolean
nautilus_toolbar_is_operations_button_active (NautilusToolbar *self)
{
- return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->operations_button));
+ return gtk_widget_is_visible (GTK_WIDGET (self->operations_popover));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]