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



commit 6e3df09fb4c82e0fbf4589540f6ba085c7db339b
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 fc661136..8dabfb97 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 16a243e5..199bf66e 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]