[gnome-music/wip/mschraal/gtk4: 92/102] headerbars: Fix title widget
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 92/102] headerbars: Fix title widget
- Date: Mon, 8 Jun 2020 23:45:50 +0000 (UTC)
commit dc9f9636b1213720ed60df4aed259664c383cee0
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 ff5e6d45..546eedc7 100644
--- a/gnomemusic/widgets/headerbar.py
+++ b/gnomemusic/widgets/headerbar.py
@@ -211,11 +211,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 86093c0b..68ce0c75 100644
--- a/gnomemusic/widgets/searchheaderbar.py
+++ b/gnomemusic/widgets/searchheaderbar.py
@@ -163,9 +163,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]