[gnome-games] display-header-bar: Bind show-close-button in xml
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] display-header-bar: Bind show-close-button in xml
- Date: Tue, 28 Jan 2020 14:40:32 +0000 (UTC)
commit 100259fa36595d08b121e016e4a0f4cde1fcde79
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Jan 28 19:34:54 2020 +0500
display-header-bar: Bind show-close-button in xml
data/ui/display-header-bar.ui | 2 +-
src/ui/display-header-bar.vala | 5 +----
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/data/ui/display-header-bar.ui b/data/ui/display-header-bar.ui
index 4b231928..a8dbba47 100644
--- a/data/ui/display-header-bar.ui
+++ b/data/ui/display-header-bar.ui
@@ -15,7 +15,7 @@
<object class="GtkHeaderBar" id="ingame_header_bar">
<property name="visible">True</property>
<property name="title" bind-source="GamesDisplayHeaderBar" bind-property="game-title"
bind-flags="bidirectional"/>
- <property name="show_close_button">True</property>
+ <property name="show-close-button" bind-source="GamesDisplayHeaderBar"
bind-property="show-title-buttons" bind-flags="bidirectional|sync-create"/>
<child>
<object class="GtkButton" id="back">
<property name="visible">True</property>
diff --git a/src/ui/display-header-bar.vala b/src/ui/display-header-bar.vala
index fde9ec92..f98221f5 100644
--- a/src/ui/display-header-bar.vala
+++ b/src/ui/display-header-bar.vala
@@ -8,10 +8,7 @@ private class Games.DisplayHeaderBar : Gtk.Bin {
private MediaMenuButton media_button;
public string game_title { get; set; }
-
- public bool show_title_buttons {
- set { ingame_header_bar.show_close_button = value; }
- }
+ public bool show_title_buttons { get; set; default = true; }
public bool can_fullscreen { get; set; }
public bool is_fullscreen { get; set; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]