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



commit 42880d689cbe544f77cfaeb049ec197b68c9f621
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         | 4 ++--
 data/ui/display-header-bar.ui            | 2 +-
 data/ui/preferences-window.ui            | 4 ++--
 src/ui/display-header-bar.vala           | 2 +-
 src/ui/preferences-subpage-gamepad.vala  | 2 +-
 src/ui/preferences-subpage-keyboard.vala | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/data/ui/collection-header-bar.ui b/data/ui/collection-header-bar.ui
index 9d3aff8f..3f01512f 100644
--- a/data/ui/collection-header-bar.ui
+++ b/data/ui/collection-header-bar.ui
@@ -10,7 +10,7 @@
         <child>
           <object class="GtkHeaderBar" id="header_bar">
             <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>
@@ -108,7 +108,7 @@
         <child>
           <object class="GtkHeaderBar" id="subview_header_bar">
             <property name="visible">True</property>
-            <property name="show_close_button">True</property>
+            <property name="show-title-buttons">True</property>
             <child>
               <object class="GtkButton">
                 <property name="visible">True</property>
diff --git a/data/ui/display-header-bar.ui b/data/ui/display-header-bar.ui
index 9461a421..21f2adce 100644
--- a/data/ui/display-header-bar.ui
+++ b/data/ui/display-header-bar.ui
@@ -14,7 +14,7 @@
           <object class="GtkHeaderBar" id="ingame_header_bar">
             <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>
             <child>
               <object class="GtkButton" id="back">
                 <property name="visible">True</property>
diff --git a/data/ui/preferences-window.ui b/data/ui/preferences-window.ui
index 63f46cc3..75a95f07 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>
                     <child>
                       <object class="GtkButton" id="window_back_button">
                         <property name="visible">False</property>
@@ -63,7 +63,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="page_back_button">
                         <property name="visible">False</property>
diff --git a/src/ui/display-header-bar.vala b/src/ui/display-header-bar.vala
index 859aed55..97cb41c1 100644
--- a/src/ui/display-header-bar.vala
+++ b/src/ui/display-header-bar.vala
@@ -27,7 +27,7 @@ private class Games.DisplayHeaderBar : Gtk.Bin {
        }
 
        public bool show_title_buttons {
-               set { ingame_header_bar.show_close_button = value; }
+               set { ingame_header_bar.show_title_buttons = value; }
        }
 
        public bool can_fullscreen { get; set; }
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]