[gnome-music/wip/jfelder/gtk4-v3: 151/208] headerbar: show-close-button is now show-title-buttons




commit e9990e8c1e494b0e2e0bf645c708b44c07ca5cb8
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Feb 4 05:01:50 2022 +0100

    headerbar: show-close-button is now show-title-buttons

 gnomemusic/widgets/headerbar.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/widgets/headerbar.py b/gnomemusic/widgets/headerbar.py
index 137115abc..5740f7953 100644
--- a/gnomemusic/widgets/headerbar.py
+++ b/gnomemusic/widgets/headerbar.py
@@ -119,10 +119,10 @@ class HeaderBar(Adw.Bin):
 
         self._menu_button.set_popover(AppMenu(application))
 
-        # self.bind_property(
-        #     "selection-mode", self, "show-close-button",
-        #     GObject.BindingFlags.INVERT_BOOLEAN
-        #     | GObject.BindingFlags.SYNC_CREATE)
+        self.bind_property(
+            "selection-mode", self._headerbar, "show-end-title-buttons",
+            GObject.BindingFlags.INVERT_BOOLEAN
+            | GObject.BindingFlags.SYNC_CREATE)
         self.bind_property(
             "selection-mode", self._cancel_button, "visible")
         self.bind_property(


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