Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
GtkScrolledWindow: Disconnect from frame clock properly
Browse files Browse the repository at this point in the history
The tick callback IDs from GtkWidget aren't timeouts, so
use the correct function to disconnect from them.

Spotted by Benjamin Otte <[email protected]>

https://bugzilla.gnome.org/show_bug.cgi?id=710666
  • Loading branch information
hadess committed Oct 23, 2013
1 parent 7c12e64 commit 255fafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtk/gtkscrolledwindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 255fafb

Please sign in to comment.