[gtk+] GtkScrolledWindow: Disconnect from frame clock properly
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkScrolledWindow: Disconnect from frame clock properly
- Date: Wed, 23 Oct 2013 13:23:15 +0000 (UTC)
commit 255fafb891f0156f1da1e742c15288aac0c4d9da
Author: Bastien Nocera <hadess hadess net>
Date: Tue Oct 22 18:45:00 2013 +0200
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
gtk/gtkscrolledwindow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index e60058b..56cf662 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]