[gnome-music/wip/mschraal/gtk4-v2: 8/53] headerbars: Fix title widget




commit a2ab5850d0bb7381d66a6ceea41a899e684b6630
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Jun 8 01:10:24 2020 +0200

    headerbars: Fix title widget

 gnomemusic/widgets/headerbar.py       | 6 +++---
 gnomemusic/widgets/searchheaderbar.py | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/widgets/headerbar.py b/gnomemusic/widgets/headerbar.py
index ee1639637..7e0f30b5c 100644
--- a/gnomemusic/widgets/headerbar.py
+++ b/gnomemusic/widgets/headerbar.py
@@ -215,11 +215,11 @@ class HeaderBar(Gtk.HeaderBar):
 
     def _update(self):
         if self.props.selection_mode:
-            self.props.custom_title = self._selection_menu
+            self.props.title_widget = self._selection_menu
         elif self.props.state != HeaderBar.State.MAIN:
-            self.props.custom_title = None
+            self.props.title_widget = None
         else:
-            self.props.custom_title = self._stack_switcher
+            self.props.title_widget = self._stack_switcher
 
         self._back_button.props.visible = (
             not self.props.selection_mode
diff --git a/gnomemusic/widgets/searchheaderbar.py b/gnomemusic/widgets/searchheaderbar.py
index 09330a109..57d9a6923 100644
--- a/gnomemusic/widgets/searchheaderbar.py
+++ b/gnomemusic/widgets/searchheaderbar.py
@@ -164,9 +164,9 @@ class SearchHeaderBar(Gtk.HeaderBar):
 
     def _update(self):
         if self.props.selection_mode:
-            self.props.custom_title = self._selection_menu
+            self.props.title_widget = self._selection_menu
         else:
-            self.props.custom_title = self._entry
+            self.props.title_widget = self._entry
 
     def _on_selection_mode_allowed_changed(self, widget, data):
         if self.props.selection_mode_allowed:


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