summaryrefslogtreecommitdiff
path: root/gtk/gtkheaderbarprivate.h
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/gtkheaderbarprivate.h
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/gtkheaderbarprivate.h')
-rw-r--r--gtk/gtkheaderbarprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkheaderbarprivate.h b/gtk/gtkheaderbarprivate.h
index 5ace00e37b..bad342d5fd 100644
--- a/gtk/gtkheaderbarprivate.h
+++ b/gtk/gtkheaderbarprivate.h
@@ -25,6 +25,7 @@
G_BEGIN_DECLS
gboolean _gtk_header_bar_shows_app_menu (GtkHeaderBar *bar);
+void _gtk_header_bar_track_default_decoration (GtkHeaderBar *bar);
void _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar);
gboolean _gtk_header_bar_update_window_icon (GtkHeaderBar *bar,
GtkWindow *window);