summaryrefslogtreecommitdiff
path: root/gtk/ui
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2019-05-12 09:58:22 +0000
committerFlorian Müllner <fmuellner@gnome.org>2019-05-12 20:09:03 +0000
commit66c8a996f9bbb60e15171650e80e4bb886886490 (patch)
treeb9a3124d6d703c8bd191b33d829b4f219cb6b3c8 /gtk/ui
parent1318d3748afba9ef8c476f05cca0516f885faeb7 (diff)
downloadgtk+-66c8a996f9bbb60e15171650e80e4bb886886490.tar.gz
dialog: Use default decoration for non-custom headerbars
There are two ways GTK can add a headerbar to a dialog: - the dialog is constructed with the :use-header-bar property - all windows should use client-side decorations In the first case, the headerbar is added by GtkDialog with no dedicated style class, and in the latter by GtkWindow with the "default-decoration" style. As a result, dialogs with plain titlebars can end up with clearly distinct and inconsistent styles. To address this, allow headerbars to track whether they should use the "default-decoration" style and enable it for dialogs. https://gitlab.gnome.org/GNOME/gtk/merge_requests/836
Diffstat (limited to 'gtk/ui')
-rw-r--r--gtk/ui/gtkdialog.ui1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/ui/gtkdialog.ui b/gtk/ui/gtkdialog.ui
index 9c83c84207..6b427e4f0b 100644
--- a/gtk/ui/gtkdialog.ui
+++ b/gtk/ui/gtkdialog.ui
@@ -6,6 +6,7 @@
<child type="titlebar">
<object class="GtkHeaderBar" id="headerbar">
<property name="show-title-buttons">1</property>
+ <property name="has-subtitle">false</property>
</object>
</child>
<child>