forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
a9cd971729
commit
ab4d6935ef
@ -1,3 +1,12 @@
|
||||
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
|
||||
|
@ -1,3 +1,12 @@
|
||||
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
|
||||
|
@ -1,3 +1,12 @@
|
||||
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
|
||||
|
@ -1,3 +1,12 @@
|
||||
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
|
||||
|
@ -1,3 +1,12 @@
|
||||
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
|
||||
|
@ -1,3 +1,12 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user