Commit 3c752563 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 6d5398cc
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.
......
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.
......
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.
......
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment