[gnome-games/wip/exalm/gtk4: 18/30] ui: Replace 'show_close-button' property with 'show_title_buttons'
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 18/30] ui: Replace 'show_close-button' property with 'show_title_buttons'
- Date: Sun, 16 Sep 2018 12:51:32 +0000 (UTC)
commit 82a8ef06e681c1bb68f5ac322de9edcba76a1899
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Jul 29 10:56:11 2018 +0500
ui: Replace 'show_close-button' property with 'show_title_buttons'
data/ui/application-window.ui | 4 ++--
data/ui/display-box.ui | 2 +-
data/ui/preferences-window.ui | 2 +-
src/ui/preferences-window.vala | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/application-window.ui b/data/ui/application-window.ui
index 61303365..3985ac86 100644
--- a/data/ui/application-window.ui
+++ b/data/ui/application-window.ui
@@ -49,7 +49,7 @@
<child>
<object class="GamesCollectionHeaderBar" id="collection_header_bar">
<property name="visible">True</property>
- <property name="show_close_button">True</property>
+ <property name="show_title_buttons">True</property>
</object>
<packing>
<property name="name">collection</property>
@@ -58,7 +58,7 @@
<child>
<object class="GamesDisplayHeaderBar" id="display_header_bar">
<property name="visible">True</property>
- <property name="show_close_button">True</property>
+ <property name="show_title_buttons">True</property>
<signal name="back" handler="on_display_back"/>
</object>
<packing>
diff --git a/data/ui/display-box.ui b/data/ui/display-box.ui
index 0c42f288..8e83ea7f 100644
--- a/data/ui/display-box.ui
+++ b/data/ui/display-box.ui
@@ -27,7 +27,7 @@
<child>
<object class="GamesDisplayHeaderBar" id="fullscreen_header_bar">
<property name="visible">True</property>
- <property name="show_close_button">False</property>
+ <property name="show_title_buttons">False</property>
<signal name="back" handler="on_fullscreen_header_bar_back"/>
</object>
</child>
diff --git a/data/ui/preferences-window.ui b/data/ui/preferences-window.ui
index 05a71cbf..3747ec05 100644
--- a/data/ui/preferences-window.ui
+++ b/data/ui/preferences-window.ui
@@ -15,7 +15,7 @@
<property name="name">left_header_bar</property>
<property name="visible">True</property>
<property name="title" translatable="yes">Preferences</property>
- <property name="show-close-button">True</property>
+ <property name="show_title_buttons">True</property>
<property name="decoration_layout">menu</property>
</object>
</child>
diff --git a/src/ui/preferences-window.vala b/src/ui/preferences-window.vala
index 6a89c1e2..bf1121ae 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -23,7 +23,7 @@ private class Games.PreferencesWindow : Gtk.Window {
titlebar_box.remove (_right_header_bar);
if (value != null) {
titlebar_box.pack_end (value);
- value.show_close_button = !immersive_mode;
+ value.show_title_buttons = !immersive_mode;
}
_right_header_bar = value;
}
@@ -38,7 +38,7 @@ private class Games.PreferencesWindow : Gtk.Window {
separator.visible = !value;
sidebar.visible = !value;
if (right_header_bar != null)
- right_header_bar.show_close_button = !value;
+ right_header_bar.show_title_buttons = !value;
_immersive_mode = value;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]