Replace a lot of idle and timeout calls by the new gdk_threads api.
2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
This commit is contained in:

committed by
Matthias Clasen

parent
7854bd1b6e
commit
721c3bc101
@ -1741,8 +1741,6 @@ popdown_timeout (gpointer data)
|
||||
{
|
||||
GtkCellRendererTextPrivate *priv;
|
||||
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
priv = GTK_CELL_RENDERER_TEXT_GET_PRIVATE (data);
|
||||
|
||||
priv->entry_menu_popdown_timeout = 0;
|
||||
@ -1750,8 +1748,6 @@ popdown_timeout (gpointer data)
|
||||
if (!GTK_WIDGET_HAS_FOCUS (priv->entry))
|
||||
gtk_cell_renderer_text_editing_done (GTK_CELL_EDITABLE (priv->entry), data);
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -1768,7 +1764,7 @@ gtk_cell_renderer_text_popup_unmap (GtkMenu *menu,
|
||||
if (priv->entry_menu_popdown_timeout)
|
||||
return;
|
||||
|
||||
priv->entry_menu_popdown_timeout = g_timeout_add (500, popdown_timeout,
|
||||
priv->entry_menu_popdown_timeout = gdk_threads_add_timeout (500, popdown_timeout,
|
||||
data);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user