summaryrefslogtreecommitdiff
path: root/gtk/gtksettings.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-15 00:33:30 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-01-17 17:52:08 -0500
commit3701de14a11e1b3e7cab4d5d2676c0c80928f278 (patch)
tree701821733edc608e88aabe1e5046d6e8e9c9103e /gtk/gtksettings.c
parente2c87f9dcd0944cf2c2c5b877e82d0fbe809f6de (diff)
downloadgtk+-3701de14a11e1b3e7cab4d5d2676c0c80928f278.tar.gz
Add a setting for dialog headers
This setting will let us keep traditional appearance of dialogs on platforms where this is expected. The new setting is called gtk-dialogs-use-header, backed by the Gtk/DialogsUseHeader xsetting.
Diffstat (limited to 'gtk/gtksettings.c')
-rw-r--r--gtk/gtksettings.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 3c74274286..4bf0e9bd7c 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -215,6 +215,7 @@ enum {
PROP_SHELL_SHOWS_MENUBAR,
PROP_SHELL_SHOWS_DESKTOP,
PROP_DECORATION_LAYOUT,
+ PROP_DIALOGS_USE_HEADER,
PROP_ENABLE_PRIMARY_PASTE,
PROP_RECENT_FILES_ENABLED
};
@@ -1576,6 +1577,27 @@ gtk_settings_class_init (GtkSettingsClass *class)
g_assert (result == PROP_DECORATION_LAYOUT);
/**
+ * GtkSettings:gtk-dialogs-use-header:
+ *
+ * Whether builtin GTK+ dialogs such as the file chooser, the
+ * color chooser or the font chooser will use a header bar at
+ * the top to show action widgets, or an action area at the bottom.
+ *
+ * This setting does not affect custom dialogs using GtkDialog
+ * directly, or message dialogs.
+ *
+ * Since: 3.12
+ */
+ result = settings_install_property_parser (class,
+ g_param_spec_boolean ("gtk-dialogs-use-header",
+ P_("Dialogs use header bar"),
+ P_("Whether builtin GTK+ dialogs should use a header bar instead of an action area."),
+ FALSE,
+ GTK_PARAM_READWRITE),
+ NULL);
+ g_assert (result == PROP_DIALOGS_USE_HEADER);
+
+ /**
* GtkSettings:gtk-enable-primary-paste:
*
* Whether a middle click on a mouse should paste the