[gnome-games/wip/exalm/gtk4: 23/35] ui: Replace 'show_close-button' property with 'show_title_buttons'



commit 37b4532d5c0ce10b58f6511f279dd7a173229f17
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 a0a6e93a..fdf2ccbe 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 28d4e16e..fedd3214 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_vbox.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]