[gnome-games/wip/exalm/pref-sidebar: 2/6] preferences-window: Use page title for headerbar
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/pref-sidebar: 2/6] preferences-window: Use page title for headerbar
- Date: Sat, 20 Oct 2018 22:13:18 +0000 (UTC)
commit 4068104378d897d066352a4ca7499eb4f5970de1
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Oct 21 02:46:46 2018 +0500
preferences-window: Use page title for headerbar
Since PreferencesPage has a 'title' property now, it can be used for the
title in headerbar instead of GtkStack titles.
src/ui/preferences-window.vala | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/ui/preferences-window.vala b/src/ui/preferences-window.vala
index 54d86c48..46695cf7 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -69,9 +69,7 @@ private class Games.PreferencesWindow : Gtk.Window {
return;
}
- var title = "";
- stack.child_get (page, "title", out title, null);
- right_header_bar.title = title;
+ right_header_bar.title = page.title;
subpage_binding = page.bind_property ("subpage", this, "subpage",
BindingFlags.SYNC_CREATE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]