From f946a5268da55003a925bd17243b88dbbd1a39f0 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 30 May 2019 11:46:12 +0200 Subject: [PATCH] libgimp: use the dialog header bar in GimpProcBrowserDialog --- libgimp/gimpprocbrowserdialog.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libgimp/gimpprocbrowserdialog.c b/libgimp/gimpprocbrowserdialog.c index 979195e9de..cc5bfb88a7 100644 --- a/libgimp/gimpprocbrowserdialog.c +++ b/libgimp/gimpprocbrowserdialog.c @@ -251,14 +251,20 @@ gimp_proc_browser_dialog_new (const gchar *title, { GimpProcBrowserDialog *dialog; va_list args; + gboolean use_header_bar; va_start (args, help_id); + g_object_get (gtk_settings_get_default (), + "gtk-dialogs-use-header", &use_header_bar, + NULL); + dialog = g_object_new (GIMP_TYPE_PROC_BROWSER_DIALOG, - "title", title, - "role", role, - "help-func", help_func, - "help-id", help_id, + "title", title, + "role", role, + "help-func", help_func, + "help-id", help_id, + "use-header-bar", use_header_bar, NULL); gimp_dialog_add_buttons_valist (GIMP_DIALOG (dialog), args);