[gnome-taquin/arnaudb/wip/gtk4: 74/108] Use show-title-buttons.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-taquin/arnaudb/wip/gtk4: 74/108] Use show-title-buttons.
- Date: Tue, 29 Sep 2020 14:16:03 +0000 (UTC)
commit eaab2613aa76fceb2f7be97390ee5224c0ed8b48
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Feb 19 21:03:45 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 98452d4..818b044 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 eff023f..263a7e6 100644
--- a/data/ui/game-headerbar.ui
+++ b/data/ui/game-headerbar.ui
@@ -18,7 +18,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 8cb5774..a536635 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]