Commit 2a136e56 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Add missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). Cast second argument

Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
	GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
	* gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
	gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
	gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
	GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko)
parent d1f4899f
Wed Dec 17 23:20:23 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
* gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
GSourceFunc instead of GtkFunction. (#129525, Olexiy Avramchenko)
Wed Dec 17 23:16:45 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
......
Wed Dec 17 23:20:23 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
* gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
GSourceFunc instead of GtkFunction. (#129525, Olexiy Avramchenko)
Wed Dec 17 23:16:45 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
......
Wed Dec 17 23:20:23 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
* gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
GSourceFunc instead of GtkFunction. (#129525, Olexiy Avramchenko)
Wed Dec 17 23:16:45 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
......
Wed Dec 17 23:20:23 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
* gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
GSourceFunc instead of GtkFunction. (#129525, Olexiy Avramchenko)
Wed Dec 17 23:16:45 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
......
Wed Dec 17 23:20:23 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
* gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
GSourceFunc instead of GtkFunction. (#129525, Olexiy Avramchenko)
Wed Dec 17 23:16:45 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
......
......@@ -2703,7 +2703,7 @@ calendar_timer (gpointer data)
{
private_data->need_timer = FALSE;
private_data->timer = g_timeout_add (CALENDAR_TIMER_DELAY,
(GtkFunction) calendar_timer,
(GSourceFunc) calendar_timer,
(gpointer) calendar);
}
else
......
......@@ -5288,7 +5288,7 @@ gtk_clist_motion (GtkWidget *widget,
return FALSE;
clist->htimer = g_timeout_add
(SCROLL_TIME, (GtkFunction) horizontal_timeout, clist);
(SCROLL_TIME, (GSourceFunc) horizontal_timeout, clist);
if (!((x < 0 && clist->hadjustment->value == 0) ||
(x >= clist->clist_window_width &&
......@@ -5320,7 +5320,7 @@ gtk_clist_motion (GtkWidget *widget,
return FALSE;
clist->vtimer = g_timeout_add (SCROLL_TIME,
(GtkFunction) vertical_timeout, clist);
(GSourceFunc) vertical_timeout, clist);
if (clist->drag_button &&
((y < 0 && clist->focus_row == 0) ||
......
......@@ -1160,6 +1160,8 @@ gtk_expander_animation_timeout (GtkExpander *expander)
GdkRectangle area;
gboolean finish = FALSE;
GDK_THREADS_ENTER();
if (GTK_WIDGET_REALIZED (expander))
{
get_expander_bounds (expander, &area);
......@@ -1199,6 +1201,8 @@ gtk_expander_animation_timeout (GtkExpander *expander)
gtk_widget_queue_resize (GTK_WIDGET (expander));
}
GDK_THREADS_LEAVE();
return !finish;
}
......
......@@ -553,7 +553,7 @@ gtk_list_motion_notify (GtkWidget *widget,
if (list->htimer == 0)
{
list->htimer = g_timeout_add
(SCROLL_TIME, (GtkFunction) gtk_list_horizontal_timeout, widget);
(SCROLL_TIME, (GSourceFunc) gtk_list_horizontal_timeout, widget);
if (!((x < adj->value && adj->value <= 0) ||
(x > adj->value + adj->page_size &&
......@@ -601,7 +601,7 @@ gtk_list_motion_notify (GtkWidget *widget,
if (!((y < 0 && focus_row == 0) ||
(y > widget->allocation.height && focus_row >= length - 1)))
list->vtimer = g_timeout_add (SCROLL_TIME,
(GtkFunction) gtk_list_vertical_timeout,
(GSourceFunc) gtk_list_vertical_timeout,
list);
if (row != focus_row)
......
......@@ -1711,7 +1711,7 @@ gtk_notebook_arrow_button_press (GtkNotebook *notebook,
if (!notebook->timer)
{
notebook->timer = g_timeout_add (NOTEBOOK_INIT_SCROLL_DELAY,
(GtkFunction) gtk_notebook_timer,
(GSourceFunc) gtk_notebook_timer,
(gpointer) notebook);
notebook->need_timer = TRUE;
}
......@@ -2552,7 +2552,7 @@ gtk_notebook_timer (GtkNotebook *notebook)
{
notebook->need_timer = FALSE;
notebook->timer = g_timeout_add (NOTEBOOK_SCROLL_DELAY,
(GtkFunction) gtk_notebook_timer,
(GSourceFunc) gtk_notebook_timer,
(gpointer) notebook);
}
else
......
......@@ -748,7 +748,7 @@ gtk_selection_convert (GtkWidget *widget,
current_retrievals = g_list_append (current_retrievals, info);
gdk_selection_convert (widget->window, selection, target, time);
g_timeout_add (1000, (GtkFunction) gtk_selection_retrieval_timeout, info);
g_timeout_add (1000, (GSourceFunc) gtk_selection_retrieval_timeout, info);
return TRUE;
}
......@@ -1275,7 +1275,7 @@ _gtk_selection_request (GtkWidget *widget,
gdk_window_get_events (info->requestor) |
GDK_PROPERTY_CHANGE_MASK);
current_incrs = g_list_append (current_incrs, info);
g_timeout_add (1000, (GtkFunction)gtk_selection_incr_timeout, info);
g_timeout_add (1000, (GSourceFunc) gtk_selection_incr_timeout, info);
}
/* If it was a MULTIPLE request, set the property to indicate which
......
......@@ -1039,7 +1039,7 @@ start_spinning (GtkSpinButton *spin,
spin->timer_step = step;
spin->need_timer = TRUE;
spin->timer = g_timeout_add (SPIN_BUTTON_INITIAL_TIMER_DELAY,
(GtkFunction) gtk_spin_button_timer,
(GSourceFunc) gtk_spin_button_timer,
(gpointer) spin);
}
......@@ -1190,7 +1190,7 @@ gtk_spin_button_timer (GtkSpinButton *spin_button)
{
spin_button->need_timer = FALSE;
spin_button->timer = g_timeout_add (SPIN_BUTTON_TIMER_DELAY,
(GtkFunction) gtk_spin_button_timer,
(GSourceFunc) gtk_spin_button_timer,
(gpointer) spin_button);
}
else
......
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