Commit ab4d6935 authored by Matthias Clasen's avatar Matthias Clasen

Don't start a drag on double click. (#98189) Also test moving.

	* gtk/gtkstatusbar.c (gtk_statusbar_button_press): Don't start
	a drag on double click.  (#98189)
	* tests/testgtk.c (grippy_button_press): Also test moving.
parent a9cd9717
2002-11-10 Matthias Clasen <maclas@gmx.de>
* gtk/gtkstatusbar.c (gtk_statusbar_button_press): Don't start
a drag on double click. (#98189)
2002-11-10 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (grippy_button_press): Also test moving.
Sun Nov 10 22:55:39 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_enter_notify): Don't return after
......
2002-11-10 Matthias Clasen <maclas@gmx.de>
* gtk/gtkstatusbar.c (gtk_statusbar_button_press): Don't start
a drag on double click. (#98189)
2002-11-10 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (grippy_button_press): Also test moving.
Sun Nov 10 22:55:39 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_enter_notify): Don't return after
......
2002-11-10 Matthias Clasen <maclas@gmx.de>
* gtk/gtkstatusbar.c (gtk_statusbar_button_press): Don't start
a drag on double click. (#98189)
2002-11-10 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (grippy_button_press): Also test moving.
Sun Nov 10 22:55:39 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_enter_notify): Don't return after
......
2002-11-10 Matthias Clasen <maclas@gmx.de>
* gtk/gtkstatusbar.c (gtk_statusbar_button_press): Don't start
a drag on double click. (#98189)
2002-11-10 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (grippy_button_press): Also test moving.
Sun Nov 10 22:55:39 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_enter_notify): Don't return after
......
2002-11-10 Matthias Clasen <maclas@gmx.de>
* gtk/gtkstatusbar.c (gtk_statusbar_button_press): Don't start
a drag on double click. (#98189)
2002-11-10 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (grippy_button_press): Also test moving.
Sun Nov 10 22:55:39 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_enter_notify): Don't return after
......
2002-11-10 Matthias Clasen <maclas@gmx.de>
* gtk/gtkstatusbar.c (gtk_statusbar_button_press): Don't start
a drag on double click. (#98189)
2002-11-10 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (grippy_button_press): Also test moving.
Sun Nov 10 22:55:39 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c (gtk_menu_enter_notify): Don't return after
......
......@@ -546,7 +546,8 @@ gtk_statusbar_button_press (GtkWidget *widget,
statusbar = GTK_STATUSBAR (widget);
if (!statusbar->has_resize_grip)
if (!statusbar->has_resize_grip ||
event->type != GDK_BUTTON_PRESS)
return FALSE;
ancestor = gtk_widget_get_toplevel (widget);
......
......@@ -2796,10 +2796,17 @@ create_reparent (GtkWidget *widget)
static gboolean
grippy_button_press (GtkWidget *area, GdkEventButton *event, GdkWindowEdge edge)
{
if (event->button == 1)
gtk_window_begin_resize_drag (GTK_WINDOW (gtk_widget_get_toplevel (area)), edge,
event->button, event->x_root, event->y_root,
event->time);
if (event->type == GDK_BUTTON_PRESS)
{
if (event->button == 1)
gtk_window_begin_resize_drag (GTK_WINDOW (gtk_widget_get_toplevel (area)), edge,
event->button, event->x_root, event->y_root,
event->time);
else if (event->button == 2)
gtk_window_begin_move_drag (GTK_WINDOW (gtk_widget_get_toplevel (area)),
event->button, event->x_root, event->y_root,
event->time);
}
return TRUE;
}
......
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