[almanah] event-factories: Sink a floatin reference to avoid a warning
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] event-factories: Sink a floatin reference to avoid a warning
- Date: Tue, 22 Sep 2015 14:06:48 +0000 (UTC)
commit 642e5687814f0243ba4d96df1584d5342497aaaa
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Sep 22 15:06:05 2015 +0100
event-factories: Sink a floatin reference to avoid a warning
The ESourceSelector is actually a GtkWidget, so we need to sink its
floating reference in order to have ownership of it.
src/event-factories/calendar-sources.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/event-factories/calendar-sources.c b/src/event-factories/calendar-sources.c
index e734bb3..eef577d 100644
--- a/src/event-factories/calendar-sources.c
+++ b/src/event-factories/calendar-sources.c
@@ -449,7 +449,7 @@ calendar_sources_load_sources (CalendarSources *sources,
dprintf ("Loading sources:\n");
dprintf (" sources_extension: %s\n", sources_extension);
- source_data->esource_selector = E_SOURCE_SELECTOR (e_source_selector_new (sources->priv->esource_registry,
sources_extension));
+ source_data->esource_selector = E_SOURCE_SELECTOR (g_object_ref_sink (e_source_selector_new
(sources->priv->esource_registry, sources_extension)));
g_signal_connect (source_data->esource_selector, "selection-changed",
G_CALLBACK (calendar_sources_selection_changed_cb),
source_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]