diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-04-16 20:33:03 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-04-16 20:33:03 +0000 |
commit | 12aa8608ed71361b58f14a287060dc10f3514b8c (patch) | |
tree | e1b7d7746d8a78021a1977416e8f47eccedcc4b0 /gtk/gtklist.c | |
parent | 0e432245a46be7a03783645aadc364ec456f9d83 (diff) | |
download | gdk-pixbuf-12aa8608ed71361b58f14a287060dc10f3514b8c.tar.gz |
Remove explicit pointer grabs, since they are no longer necessary.
Mon Apr 16 14:38:41 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
grabs, since they are no longer necessary.
* gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
by signal_connect() and call gtk_button_pressed() rather
than signal_connect_after().
* tests/testgtk.c: Restore radio menu items to combos
since they'll look OK with Raleigh, and it is easier
than finishing the process of removing them that was
started earlier.
Diffstat (limited to 'gtk/gtklist.c')
-rw-r--r-- | gtk/gtklist.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gtk/gtklist.c b/gtk/gtklist.c index cded0cf6b..30dd3aeaf 100644 --- a/gtk/gtklist.c +++ b/gtk/gtklist.c @@ -672,13 +672,6 @@ gtk_list_button_press (GtkWidget *widget, if (event->type == GDK_BUTTON_PRESS) { - if (gdk_pointer_grab (widget->window, TRUE, - GDK_POINTER_MOTION_HINT_MASK | - GDK_BUTTON1_MOTION_MASK | - GDK_BUTTON_RELEASE_MASK, - NULL, NULL, event->time)) - return FALSE; - gtk_grab_add (widget); list->drag_selection = TRUE; } @@ -1651,11 +1644,8 @@ gtk_list_end_drag_selection (GtkList *list) list->drag_selection = FALSE; if (GTK_WIDGET_HAS_GRAB (list)) - { - gtk_grab_remove (GTK_WIDGET (list)); - if (gdk_pointer_is_grabbed()) - gdk_pointer_ungrab (GDK_CURRENT_TIME); - } + gtk_grab_remove (GTK_WIDGET (list)); + if (list->htimer) { gtk_timeout_remove (list->htimer); |