summaryrefslogtreecommitdiff
path: root/packages/gtk+/gtk+-2.8.9/single-click.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-12-10 21:32:15 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-12-10 21:32:15 +0000
commit7ef13d28a46f9525664ac6afbf9c6cbb3f53aac4 (patch)
tree9443245565b6a3f6a3f97eb2c8163307a94c81f4 /packages/gtk+/gtk+-2.8.9/single-click.patch
parent19ba09d8c1b74b43f7f2b0b8c7f01080e055fc45 (diff)
gtk+: add latest stable release (2.8.9)
Diffstat (limited to 'packages/gtk+/gtk+-2.8.9/single-click.patch')
-rw-r--r--packages/gtk+/gtk+-2.8.9/single-click.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.8.9/single-click.patch b/packages/gtk+/gtk+-2.8.9/single-click.patch
new file mode 100644
index 0000000000..1bf0db12a8
--- /dev/null
+++ b/packages/gtk+/gtk+-2.8.9/single-click.patch
@@ -0,0 +1,36 @@
+--- gtk+-2.8.6/gtk/gtkfilesel.c.orig 2005-12-07 21:13:33 +0100
++++ gtk+-2.8.6/gtk/gtkfilesel.c 2005-12-07 21:14:56 +0100
+@@ -2461,6 +2461,33 @@
+ if (fs->last_selected != NULL)
+ g_free (fs->last_selected);
+
++ // Single-click directory entry
++ if (new_names->len == 1)
++ {
++ GtkTreeView *tree_view;
++ GtkTreeModel *model;
++ GtkTreePath *path;
++ GtkTreeIter iter;
++ gboolean is_file;
++
++ tree_view = gtk_tree_selection_get_tree_view (selection);
++
++ if (gtk_tree_selection_get_selected (selection, &model, &iter))
++ {
++ path = gtk_tree_model_get_path (model, &iter);
++ gtk_tree_model_get (model, &iter, ISFILE_COLUMN, &is_file, -1);
++
++ if (!is_file)
++ {
++ gtk_file_selection_dir_activate (tree_view, path,
++ gtk_tree_view_get_column (tree_view, DIR_COLUMN),
++ user_data);
++ }
++
++ gtk_tree_path_free (path);
++ }
++ }
++
+ fs->last_selected = g_strdup (g_ptr_array_index (new_names, index));
+ filename = get_real_filename (fs->last_selected, FALSE);
+