]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gtk+/gtk+-2.4.13/single-click.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gtk+ / gtk+-2.4.13 / single-click.patch
1 diff -urNd ../gtk+-2.4.4-r7/gtk+-2.4.4/gtk/gtkcalendar.c gtk+-2.4.4/gtk/gtkcalendar.c
2 --- ../gtk+-2.4.4-r7/gtk+-2.4.4/gtk/gtkcalendar.c       2004-07-10 05:02:10.000000000 +0100
3 +++ gtk+-2.4.4/gtk/gtkcalendar.c        2004-09-18 12:41:28.000000000 +0100
4 @@ -1026,9 +1026,8 @@
5        private_data->drag_start_y = y;
6  
7        gtk_calendar_select_and_focus_day (calendar, day);
8 -    }
9 -  else if (event->type == GDK_2BUTTON_PRESS)
10 -    {
11 +
12 +         // Double-click action follows
13        private_data->in_drag = 0;
14        if (day_month == MONTH_CURRENT)
15         g_signal_emit (calendar,
16 diff -urNd ../gtk+-2.4.4-r7/gtk+-2.4.4/gtk/gtktreeview.c gtk+-2.4.4/gtk/gtktreeview.c
17 --- ../gtk+-2.4.4-r7/gtk+-2.4.4/gtk/gtktreeview.c       2004-07-10 05:02:11.000000000 +0100
18 +++ gtk+-2.4.4/gtk/gtktreeview.c        2004-09-18 13:49:23.000000000 +0100
19 @@ -2180,7 +2180,8 @@
20        tree_view->priv->focus_column = column;
21  
22        /* decide if we edit */
23 -      if (event->type == GDK_BUTTON_PRESS && event->button == 1 &&
24 +      /* Changed from button 1 to 2 so as not to conflict with the single-click activation */
25 +      if (event->type == GDK_BUTTON_PRESS && event->button == 2 &&
26           !(event->state & gtk_accelerator_get_default_mod_mask ()))
27         {
28           GtkTreePath *anchor;
29 @@ -2305,16 +2306,13 @@
30        /* Test if a double click happened on the same row. */
31        if (event->button == 1)
32          {
33 -          /* We also handle triple clicks here, because a user could have done
34 -           * a first click and a second double click on different rows.
35 +          /* Replaced double/triple click with single-click for PDAs.
36             */
37 -          if ((event->type == GDK_2BUTTON_PRESS
38 -               || event->type == GDK_3BUTTON_PRESS)
39 -              && tree_view->priv->last_button_press)
40 +          if (event->type == GDK_BUTTON_PRESS)
41              {
42                GtkTreePath *lsc;
43  
44 -              lsc = gtk_tree_row_reference_get_path (tree_view->priv->last_button_press);
45 +              lsc = gtk_tree_row_reference_get_path (tree_view->priv->cursor);
46  
47                if (lsc)
48                  {