diff options
author | Richard Purdie <richard@openedhand.com> | 2005-12-23 00:36:23 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-12-23 00:36:23 +0000 |
commit | f0ecf5b5eefa0e6489de08ccd747ef007e7ce352 (patch) | |
tree | ce53e4e822fd3721e2b5c7cd1309d0d65ca04e75 /openembedded/packages/gtk+/gtk+-2.8.9/single-click.patch | |
parent | f2bf93642c1280ac5952ed2373e61818c0d2f969 (diff) | |
download | openembedded-core-f0ecf5b5eefa0e6489de08ccd747ef007e7ce352.tar.gz openembedded-core-f0ecf5b5eefa0e6489de08ccd747ef007e7ce352.tar.bz2 openembedded-core-f0ecf5b5eefa0e6489de08ccd747ef007e7ce352.tar.xz openembedded-core-f0ecf5b5eefa0e6489de08ccd747ef007e7ce352.zip |
add gtk+2.8.9 and eds-feed (galago)
git-svn-id: https://svn.o-hand.com/repos/poky@212 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/gtk+/gtk+-2.8.9/single-click.patch')
-rw-r--r-- | openembedded/packages/gtk+/gtk+-2.8.9/single-click.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/openembedded/packages/gtk+/gtk+-2.8.9/single-click.patch b/openembedded/packages/gtk+/gtk+-2.8.9/single-click.patch new file mode 100644 index 000000000..1bf0db12a --- /dev/null +++ b/openembedded/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); + |