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



commit 3726e22483989ada5661a23ab7c890a7765685cd
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 072d0823..422e31e4 100644
--- a/data/ui/application-window.ui
+++ b/data/ui/application-window.ui
@@ -52,7 +52,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>
@@ -61,7 +61,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 c6edcdeb..804a889b 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 aea9b2df..710611e8 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">True</property>
+                    <property name="show-title-buttons">True</property>
                     <property name="decoration_layout">menu</property>
                   </object>
                 </child>
@@ -41,7 +41,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>
                   </object>
                 </child>
               </object>
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]