Only start a drag if the left button is pressed. (#151490, Frederic
Tue Aug 31 23:24:49 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcalendar.c (gtk_calendar_main_button): Only start a drag if the left button is pressed. (#151490, Frederic Croszat)
This commit is contained in:
parent
6d5398ccdc
commit
3c752563f6
@ -1,3 +1,8 @@
|
||||
Tue Aug 31 23:24:49 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
|
||||
a drag if the left button is pressed. (#151490, Frederic Croszat)
|
||||
|
||||
Tue Aug 31 23:20:58 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gdk/x11/gdkdnd-x11.c (gdk_drop_finish): Remove debug spew.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Aug 31 23:24:49 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
|
||||
a drag if the left button is pressed. (#151490, Frederic Croszat)
|
||||
|
||||
Tue Aug 31 23:20:58 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gdk/x11/gdkdnd-x11.c (gdk_drop_finish): Remove debug spew.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Aug 31 23:24:49 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
|
||||
a drag if the left button is pressed. (#151490, Frederic Croszat)
|
||||
|
||||
Tue Aug 31 23:20:58 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gdk/x11/gdkdnd-x11.c (gdk_drop_finish): Remove debug spew.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Aug 31 23:24:49 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
|
||||
a drag if the left button is pressed. (#151490, Frederic Croszat)
|
||||
|
||||
Tue Aug 31 23:20:58 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gdk/x11/gdkdnd-x11.c (gdk_drop_finish): Remove debug spew.
|
||||
|
@ -1012,9 +1012,12 @@ gtk_calendar_main_button (GtkWidget *widget,
|
||||
if (!GTK_WIDGET_HAS_FOCUS (widget))
|
||||
gtk_widget_grab_focus (widget);
|
||||
|
||||
private_data->in_drag = 1;
|
||||
private_data->drag_start_x = x;
|
||||
private_data->drag_start_y = y;
|
||||
if (event->button == 1)
|
||||
{
|
||||
private_data->in_drag = 1;
|
||||
private_data->drag_start_x = x;
|
||||
private_data->drag_start_y = y;
|
||||
}
|
||||
|
||||
gtk_calendar_select_and_focus_day (calendar, day);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user