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



commit 93c70d704789e569b88a7fb242774f5f8f41cf85
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/collection-header-bar.ui         | 2 +-
 data/ui/display-box.ui                   | 2 +-
 data/ui/display-header-bar.ui            | 2 +-
 data/ui/preferences-window.ui            | 4 ++--
 src/ui/preferences-subpage-gamepad.vala  | 2 +-
 src/ui/preferences-subpage-keyboard.vala | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/ui/collection-header-bar.ui b/data/ui/collection-header-bar.ui
index 1c13c749..6fea383e 100644
--- a/data/ui/collection-header-bar.ui
+++ b/data/ui/collection-header-bar.ui
@@ -3,7 +3,7 @@
   <requires lib="gtk+" version="3.24"/>
   <template class="GamesCollectionHeaderBar" parent="GtkHeaderBar">
     <property name="visible">True</property>
-    <property name="show_close_button">True</property>
+    <property name="show-title-buttons">True</property>
     <child>
       <object class="GtkButton" id="add_game">
         <property name="visible">True</property>
diff --git a/data/ui/display-box.ui b/data/ui/display-box.ui
index 4160f15a..8a2f6fee 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/display-header-bar.ui b/data/ui/display-header-bar.ui
index 8a2a8094..66f416ad 100644
--- a/data/ui/display-header-bar.ui
+++ b/data/ui/display-header-bar.ui
@@ -4,7 +4,7 @@
   <template class="GamesDisplayHeaderBar" parent="GtkHeaderBar">
     <property name="visible">True</property>
     <property name="title" translatable="yes">Games</property>
-    <property name="show_close_button">True</property>
+    <property name="show-title-buttons">True</property>
     <signal name="notify::is-fullscreen" handler="on_fullscreen_changed"/>
     <signal name="notify::can-fullscreen" handler="on_fullscreen_changed"/>
     <child>
diff --git a/data/ui/preferences-window.ui b/data/ui/preferences-window.ui
index dd974609..5e3e7aef 100644
--- a/data/ui/preferences-window.ui
+++ b/data/ui/preferences-window.ui
@@ -22,7 +22,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>
@@ -39,7 +39,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]