[gtk+/bgo121113-filechooser-single-click-activate: 1/3] gtk-files-single-click-activate property for GtkSettings
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/bgo121113-filechooser-single-click-activate: 1/3] gtk-files-single-click-activate property for GtkSettings
- Date: Fri, 28 May 2010 16:06:01 +0000 (UTC)
commit 6af083bce7f8c26b29960ce4b5e07d2fbc1389e2
Author: Christian Neumair <cneumair gnome org>
Date: Fri May 28 10:55:43 2010 -0500
gtk-files-single-click-activate property for GtkSettings
Signed-off-by: Federico Mena Quintero <federico novell com>
gtk/gtksettings.c | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 99dcb84..5b105e8 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -126,7 +126,8 @@ enum {
PROP_TOOLBAR_STYLE,
PROP_TOOLBAR_ICON_SIZE,
PROP_AUTO_MNEMONICS,
- PROP_APPLICATION_PREFER_DARK_THEME
+ PROP_APPLICATION_PREFER_DARK_THEME,
+ PROP_FILES_SINGLE_CLICK_ACTIVATE
};
@@ -1044,6 +1045,23 @@ gtk_settings_class_init (GtkSettingsClass *class)
GTK_PARAM_READWRITE),
NULL);
g_assert (result == PROP_APPLICATION_PREFER_DARK_THEME);
+
+ /**
+ * GtkSettings:gtk-files-single-click-activate:
+ *
+ * Whether files should be activated with one click in the file manager
+ * and in GTK+ file choosers.
+ *
+ * Since: 2.90
+ */
+ result = settings_install_property_parser (class,
+ g_param_spec_boolean ("gtk-files-single-click-activate",
+ P_("Activate files on single click"),
+ P_("Whether files and folders should be activated on single or double click"),
+ FALSE,
+ GTK_PARAM_READWRITE),
+ NULL);
+ g_assert (result == PROP_FILES_SINGLE_CLICK_ACTIVATE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]