Add some missing GDK_THREADS_ENTER()/LEAVE around timeouts. (Patches from
Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c: Add some missing GDK_THREADS_ENTER()/LEAVE around timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
|
||||
Add some missing GDK_THREADS_ENTER()/LEAVE around
|
||||
timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
|
||||
|
||||
Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
|
||||
Add some missing GDK_THREADS_ENTER()/LEAVE around
|
||||
timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
|
||||
|
||||
Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
|
||||
Add some missing GDK_THREADS_ENTER()/LEAVE around
|
||||
timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
|
||||
|
||||
Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
|
||||
Add some missing GDK_THREADS_ENTER()/LEAVE around
|
||||
timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
|
||||
|
||||
Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
|
||||
Add some missing GDK_THREADS_ENTER()/LEAVE around
|
||||
timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
|
||||
|
||||
Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
|
||||
Add some missing GDK_THREADS_ENTER()/LEAVE around
|
||||
timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
|
||||
|
||||
Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
|
||||
Add some missing GDK_THREADS_ENTER()/LEAVE around
|
||||
timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
|
||||
|
||||
Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
|
||||
|
||||
@@ -1145,10 +1145,14 @@ gtk_color_selection_wheel_timeout (GtkColorSelection *colorsel)
|
||||
{
|
||||
gint x, y;
|
||||
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
gdk_window_get_pointer (colorsel->wheel_area->window, &x, &y, NULL);
|
||||
gtk_color_selection_update_wheel (colorsel, x, y);
|
||||
gtk_color_selection_color_changed (colorsel);
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
|
||||
@@ -2666,11 +2666,15 @@ gtk_drag_abort_timeout (gpointer data)
|
||||
GtkDragSourceInfo *info = data;
|
||||
guint32 time = GDK_CURRENT_TIME;
|
||||
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
if (info->proxy_dest)
|
||||
time = info->proxy_dest->proxy_drop_time;
|
||||
|
||||
info->drop_timeout = 0;
|
||||
gtk_drag_drop_finished (info, FALSE, time);
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ static void gtk_real_menu_item_select (GtkItem *item);
|
||||
static void gtk_real_menu_item_deselect (GtkItem *item);
|
||||
static void gtk_real_menu_item_activate_item (GtkMenuItem *item);
|
||||
static gint gtk_menu_item_select_timeout (gpointer data);
|
||||
static void gtk_menu_item_select_timeout_unlocked (gpointer data);
|
||||
static void gtk_menu_item_position_menu (GtkMenu *menu,
|
||||
gint *x,
|
||||
gint *y,
|
||||
@@ -552,7 +553,7 @@ gtk_real_menu_item_select (GtkItem *item)
|
||||
gtk_menu_item_select_timeout,
|
||||
menu_item);
|
||||
else
|
||||
gtk_menu_item_select_timeout (menu_item);
|
||||
gtk_menu_item_select_timeout_unlocked (menu_item);
|
||||
if(event) gdk_event_free(event);
|
||||
}
|
||||
|
||||
@@ -628,10 +629,20 @@ gtk_real_menu_item_activate_item (GtkMenuItem *menu_item)
|
||||
static gint
|
||||
gtk_menu_item_select_timeout (gpointer data)
|
||||
{
|
||||
GtkMenuItem *menu_item;
|
||||
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
gtk_menu_item_select_timeout_unlocked (data);
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_menu_item_select_timeout_unlocked (gpointer data)
|
||||
{
|
||||
GtkMenuItem *menu_item;
|
||||
|
||||
menu_item = GTK_MENU_ITEM (data);
|
||||
menu_item->timer = 0;
|
||||
|
||||
@@ -655,10 +666,6 @@ gtk_menu_item_select_timeout (gpointer data)
|
||||
gtk_menu_shell_select_item (submenu, submenu->children->data);
|
||||
}
|
||||
}
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user