diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gtk+/gtk+-2.4.4/single-click.patch | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gtk+/gtk+-2.4.4/single-click.patch')
-rw-r--r-- | packages/gtk+/gtk+-2.4.4/single-click.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.4.4/single-click.patch b/packages/gtk+/gtk+-2.4.4/single-click.patch index e69de29bb2..21adb9b7b0 100644 --- a/packages/gtk+/gtk+-2.4.4/single-click.patch +++ b/packages/gtk+/gtk+-2.4.4/single-click.patch @@ -0,0 +1,48 @@ +diff -urNd ../gtk+-2.4.4-r7/gtk+-2.4.4/gtk/gtkcalendar.c gtk+-2.4.4/gtk/gtkcalendar.c +--- ../gtk+-2.4.4-r7/gtk+-2.4.4/gtk/gtkcalendar.c 2004-07-10 05:02:10.000000000 +0100 ++++ gtk+-2.4.4/gtk/gtkcalendar.c 2004-09-18 12:41:28.000000000 +0100 +@@ -1026,9 +1026,8 @@ + private_data->drag_start_y = y; + + gtk_calendar_select_and_focus_day (calendar, day); +- } +- else if (event->type == GDK_2BUTTON_PRESS) +- { ++ ++ // Double-click action follows + private_data->in_drag = 0; + if (day_month == MONTH_CURRENT) + g_signal_emit (calendar, +diff -urNd ../gtk+-2.4.4-r7/gtk+-2.4.4/gtk/gtktreeview.c gtk+-2.4.4/gtk/gtktreeview.c +--- ../gtk+-2.4.4-r7/gtk+-2.4.4/gtk/gtktreeview.c 2004-07-10 05:02:11.000000000 +0100 ++++ gtk+-2.4.4/gtk/gtktreeview.c 2004-09-18 13:49:23.000000000 +0100 +@@ -2180,7 +2180,8 @@ + tree_view->priv->focus_column = column; + + /* decide if we edit */ +- if (event->type == GDK_BUTTON_PRESS && event->button == 1 && ++ /* Changed from button 1 to 2 so as not to conflict with the single-click activation */ ++ if (event->type == GDK_BUTTON_PRESS && event->button == 2 && + !(event->state & gtk_accelerator_get_default_mod_mask ())) + { + GtkTreePath *anchor; +@@ -2305,16 +2306,13 @@ + /* Test if a double click happened on the same row. */ + if (event->button == 1) + { +- /* We also handle triple clicks here, because a user could have done +- * a first click and a second double click on different rows. ++ /* Replaced double/triple click with single-click for PDAs. + */ +- if ((event->type == GDK_2BUTTON_PRESS +- || event->type == GDK_3BUTTON_PRESS) +- && tree_view->priv->last_button_press) ++ if (event->type == GDK_BUTTON_PRESS) + { + GtkTreePath *lsc; + +- lsc = gtk_tree_row_reference_get_path (tree_view->priv->last_button_press); ++ lsc = gtk_tree_row_reference_get_path (tree_view->priv->cursor); + + if (lsc) + { |