[gimp] libgimp: use the dialog header bar in GimpProcBrowserDialog
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: use the dialog header bar in GimpProcBrowserDialog
- Date: Thu, 30 May 2019 09:50:10 +0000 (UTC)
commit f946a5268da55003a925bd17243b88dbbd1a39f0
Author: Michael Natterer <mitch gimp org>
Date: Thu May 30 11:46:12 2019 +0200
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]