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:
Matthias Clasen 2004-09-01 03:25:57 +00:00 committed by Matthias Clasen
parent 6d5398ccdc
commit 3c752563f6
5 changed files with 26 additions and 3 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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);
}