[gnome-logs/wip/batching: 12/14] Remove idle handler when finalizing GlEventView
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs/wip/batching: 12/14] Remove idle handler when finalizing GlEventView
- Date: Mon, 3 Mar 2014 13:21:33 +0000 (UTC)
commit 3c26fda5db2cc20c4ac3e900b4e2657417ebd736
Author: David King <davidk gnome org>
Date: Thu Feb 20 12:20:54 2014 +0000
Remove idle handler when finalizing GlEventView
src/gl-eventview.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/gl-eventview.c b/src/gl-eventview.c
index 8580e20..a9c7044 100644
--- a/src/gl-eventview.c
+++ b/src/gl-eventview.c
@@ -283,6 +283,7 @@ insert_devices_idle (GlEventView *view)
priv->results_listbox = NULL;
priv->results = NULL;
+ priv->insert_idle_id = 0;
return G_SOURCE_REMOVE;
}
}
@@ -291,6 +292,7 @@ insert_devices_idle (GlEventView *view)
}
else
{
+ priv->insert_idle_id = 0;
return G_SOURCE_REMOVE;
}
}
@@ -366,6 +368,7 @@ insert_security_idle (GlEventView *view)
priv->results_listbox = NULL;
priv->results = NULL;
+ priv->insert_idle_id = 0;
return G_SOURCE_REMOVE;
}
}
@@ -374,6 +377,7 @@ insert_security_idle (GlEventView *view)
}
else
{
+ priv->insert_idle_id = 0;
return G_SOURCE_REMOVE;
}
}
@@ -444,6 +448,7 @@ insert_simple_idle (GlEventView *view)
priv->results_listbox = NULL;
priv->results = NULL;
+ priv->insert_idle_id = 0;
return G_SOURCE_REMOVE;
}
}
@@ -452,6 +457,7 @@ insert_simple_idle (GlEventView *view)
}
else
{
+ priv->insert_idle_id = 0;
return G_SOURCE_REMOVE;
}
}
@@ -520,6 +526,7 @@ insert_cmdline_idle (GlEventView *view)
priv->results_listbox = NULL;
priv->results = NULL;
+ priv->insert_idle_id = 0;
return G_SOURCE_REMOVE;
}
}
@@ -528,6 +535,7 @@ insert_cmdline_idle (GlEventView *view)
}
else
{
+ priv->insert_idle_id = 0;
return G_SOURCE_REMOVE;
}
}
@@ -911,6 +919,11 @@ gl_event_view_finalize (GObject *object)
GlEventView *view = GL_EVENT_VIEW (object);
GlEventViewPrivate *priv = gl_event_view_get_instance_private (view);
+ if (priv->insert_idle_id)
+ {
+ g_source_remove (priv->insert_idle_id);
+ }
+
g_clear_pointer (&priv->search_text, g_free);
g_clear_pointer (&priv->pending_results, g_queue_free);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]