[iagno/arnaudb/wip/gtk4: 9/54] Use show-title-buttons.



commit aa434fe75fc159898350b83be5a5d231c7a7e9c1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Feb 14 05:25:38 2020 +0100

    Use show-title-buttons.

 data/ui/base-headerbar.ui | 2 +-
 data/ui/game-headerbar.ui | 2 +-
 src/base-headerbar.vala   | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/base-headerbar.ui b/data/ui/base-headerbar.ui
index 9e7b054..32eef08 100644
--- a/data/ui/base-headerbar.ui
+++ b/data/ui/base-headerbar.ui
@@ -18,7 +18,7 @@
 <interface>
   <requires lib="gtk+" version="3.12"/>
   <template class="BaseHeaderBar" parent="NightTimeAwareHeaderBar">
-    <property name="show-close-button">True</property>
+    <property name="show-title-buttons">True</property>
     <property name="has-subtitle">False</property>
     <child>
       <object class="GtkButton" id="go_back_button">
diff --git a/data/ui/game-headerbar.ui b/data/ui/game-headerbar.ui
index a20e844..0878f6a 100644
--- a/data/ui/game-headerbar.ui
+++ b/data/ui/game-headerbar.ui
@@ -22,7 +22,7 @@
 <interface>
   <requires lib="gtk+" version="3.12"/>
   <template class="GameHeaderBar" parent="BaseHeaderBar">
-    <property name="show-close-button">True</property>
+    <property name="show-title-buttons">True</property>
     <child>
       <object class="GtkButton" id="new_game_button">
         <property name="halign">center</property>
diff --git a/src/base-headerbar.vala b/src/base-headerbar.vala
index 075a3ef..a4d35c5 100644
--- a/src/base-headerbar.vala
+++ b/src/base-headerbar.vala
@@ -49,7 +49,7 @@ private class BaseHeaderBar : NightTimeAwareHeaderBar, AdaptativeWidget
             disable_action_bar = _disable_action_bar;
             if (disable_action_bar)
             {
-                set_show_close_button (false);
+                set_show_title_buttons (false);
                 quit_button_stack.show ();
                 ltr_right_separator.visible = current_mode_id == default_mode_id;
             }
@@ -57,7 +57,7 @@ private class BaseHeaderBar : NightTimeAwareHeaderBar, AdaptativeWidget
             {
                 ltr_right_separator.hide ();
                 quit_button_stack.hide ();
-                set_show_close_button (true);
+                set_show_title_buttons (true);
             }
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]