GtkScrolledWindow: Disconnect from frame clock properly

The tick callback IDs from GtkWidget aren't timeouts, so
use the correct function to disconnect from them.

Spotted by Benjamin Otte <otte@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=710666
This commit is contained in:
Bastien Nocera 2013-10-22 18:45:00 +02:00
parent 7c12e6480b
commit 255fafb891

View File

@ -1080,7 +1080,7 @@ gtk_scrolled_window_set_kinetic_scrolling (GtkScrolledWindow *scrolled_window,
}
if (priv->deceleration_id)
{
g_source_remove (priv->deceleration_id);
gtk_widget_remove_tick_callback (GTK_WIDGET (scrolled_window), priv->deceleration_id);
priv->deceleration_id = 0;
}
}
@ -1187,7 +1187,7 @@ gtk_scrolled_window_destroy (GtkWidget *widget)
}
if (priv->deceleration_id)
{
g_source_remove (priv->deceleration_id);
gtk_widget_remove_tick_callback (widget, priv->deceleration_id);
priv->deceleration_id = 0;
}