summaryrefslogtreecommitdiff
path: root/packages/gtk+/gtk+-2.10.14/single-click.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-07-21 19:01:50 +0000
committerKoen Kooi <koen@openembedded.org>2007-07-21 19:01:50 +0000
commitb47ad597951b6b5948795fbd86e7a3942ddc2b78 (patch)
tree75612dbd5af36023e281d46519c0995d622eefa6 /packages/gtk+/gtk+-2.10.14/single-click.patch
parentf2a42448067579648da7512bf759649bed7cb797 (diff)
gtk+: add 2.10.14, the latest stable release
Diffstat (limited to 'packages/gtk+/gtk+-2.10.14/single-click.patch')
-rw-r--r--packages/gtk+/gtk+-2.10.14/single-click.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.10.14/single-click.patch b/packages/gtk+/gtk+-2.10.14/single-click.patch
new file mode 100644
index 0000000000..250f1629f5
--- /dev/null
+++ b/packages/gtk+/gtk+-2.10.14/single-click.patch
@@ -0,0 +1,56 @@
+Index: gtk+-2.10.6/gtk/gtkcalendar.c
+===================================================================
+--- gtk+-2.10.6.orig/gtk/gtkcalendar.c
++++ gtk+-2.10.6/gtk/gtkcalendar.c
+@@ -2482,9 +2482,11 @@ calendar_main_button_press (GtkCalendar
+ }
+
+ calendar_select_and_focus_day (calendar, day);
+- }
++
++ // This change causes the calendar to disappear after choosing a day
++/* }
+ else if (event->type == GDK_2BUTTON_PRESS)
+- {
++ {*/
+ priv->in_drag = 0;
+ if (day_month == MONTH_CURRENT)
+ g_signal_emit (calendar,
+Index: gtk+-2.10.6/gtk/gtkfilesel.c
+===================================================================
+--- gtk+-2.10.6.orig/gtk/gtkfilesel.c
++++ gtk+-2.10.6/gtk/gtkfilesel.c
+@@ -2426,6 +2426,33 @@ gtk_file_selection_file_changed (GtkTree
+ 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);
+