[gnome-games/wip/exalm/gtk4: 31/45] ui: Replace 'show-close-button' property with 'show-title-buttons'



commit 7a017f01088d5ae35e3c3eb8da46e2e1bf8dd5cf
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            | 4 ++--
 src/ui/preferences-subpage-gamepad.vala  | 2 +-
 src/ui/preferences-subpage-keyboard.vala | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/ui/application-window.ui b/data/ui/application-window.ui
index dfdf3feb..c3daf549 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 05af4b42..0e4f0754 100644
--- a/data/ui/display-box.ui
+++ b/data/ui/display-box.ui
@@ -9,7 +9,7 @@
         <child type="titlebar">
           <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 1f168efa..141c8968 100644
--- a/data/ui/preferences-window.ui
+++ b/data/ui/preferences-window.ui
@@ -23,7 +23,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">False</property>
+                    <property name="show-title-buttons">False</property>
                   </object>
                 </child>
                 <child>
@@ -40,7 +40,7 @@
                     <property name="name">right_header_bar</property>
                     <property name="visible">True</property>
                     <property name="hexpand">True</property>
-                    <property name="show-close-button">True</property>
+                    <property name="show-title-buttons">True</property>
                     <child>
                       <object class="GtkButton" id="back_button">
                         <property name="visible">False</property>
diff --git a/src/ui/preferences-subpage-gamepad.vala b/src/ui/preferences-subpage-gamepad.vala
index 5d75cb5d..6b4ee60f 100644
--- a/src/ui/preferences-subpage-gamepad.vala
+++ b/src/ui/preferences-subpage-gamepad.vala
@@ -67,7 +67,7 @@ private class Games.PreferencesSubpageGamepad: Gtk.Box, PreferencesSubpage {
                        _state = value;
                        back_button.visible = (state == State.TEST);
                        cancel_button.visible = (state == State.CONFIGURE);
-                       header_bar.show_close_button = (state == State.TEST);
+                       header_bar.show_title_buttons = (state == State.TEST);
                        request_selection_mode = (state == State.CONFIGURE);
 
                        switch (value) {
diff --git a/src/ui/preferences-subpage-keyboard.vala b/src/ui/preferences-subpage-keyboard.vala
index 71b5f0f1..cf9dc1ea 100644
--- a/src/ui/preferences-subpage-keyboard.vala
+++ b/src/ui/preferences-subpage-keyboard.vala
@@ -58,7 +58,7 @@ private class Games.PreferencesSubpageKeyboard: Gtk.Box, PreferencesSubpage {
                        _state = value;
                        back_button.visible = (state == State.TEST);
                        cancel_button.visible = (state == State.CONFIGURE);
-                       header_bar.show_close_button = (state == State.TEST);
+                       header_bar.show_title_buttons = (state == State.TEST);
                        request_selection_mode = (state == State.CONFIGURE);
 
                        switch (value) {


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