[gtk+/gtk-2-24] treeview: properly remove the timeout in expand_collapse_timeout()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] treeview: properly remove the timeout in expand_collapse_timeout()
- Date: Tue, 1 Apr 2014 22:07:18 +0000 (UTC)
commit 1f8d021d3023830e3701c304859f789dd30bd0d9
Author: Michael Natterer <mitch gimp org>
Date: Wed Apr 2 00:04:50 2014 +0200
treeview: properly remove the timeout in expand_collapse_timeout()
or it will later warn about removing a source that doesn't exist.
gtk/gtktreeview.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index eccd20c..f63419f 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -11866,7 +11866,13 @@ gtk_tree_view_expand_all (GtkTreeView *tree_view)
static gboolean
expand_collapse_timeout (gpointer data)
{
- return do_expand_collapse (data);
+ GtkTreeView *tree_view = GTK_TREE_VIEW (data);
+ gboolean retval = do_expand_collapse (data);
+
+ if (! retval)
+ remove_expand_collapse_timeout (tree_view);
+
+ return retval;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]