aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-data-wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-data-wrapper.c')
-rw-r--r--camel/camel-data-wrapper.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index fe9f8bf78b..86be8117bf 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -156,7 +156,12 @@ camel_data_wrapper_write_to_stream (CamelDataWrapper *data_wrapper,
static int
construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
{
- return -1;
+ if (data_wrapper->stream)
+ gtk_object_unref((GtkObject *)data_wrapper->stream);
+
+ data_wrapper->stream = stream;
+ gtk_object_ref (GTK_OBJECT (stream));
+ return 0;
}
/**
>2021-04-131-3/+0 * Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0 * Mark ports recursively depending on Python 2.7 for expiration on June 23.Rene Ladan2021-03-241-0/+3 * - Update to 4.1.3Dmitry Marakasov2021-01-271-1/+1 * - Update to 4.1.2Dmitry Marakasov2021-01-191-1/+1 * - Update to 4.1.1Dmitry Marakasov2021-01-131-18/+9 * devel/boost-*: update to 1.72.0Jan Beich2019-12-121-1/+1 * games: Add missing USES={gnome,gl,sdl,xorg}Tobias Kortkamp2019-11-081-1/+1 * devel/boost-*: update to 1.71.0Jan Beich2019-08-191-1/+1 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-1/+1 * devel/boost-*: update to 1.70.0Jan Beich2019-04-121-0/+1 * - Update to 3.5.4Dmitry Marakasov2019-01-171-1/+1 * - Update to 3.5.3Dmitry Marakasov2019-01-131-1/+1 * - Update to 3.5.2Dmitry Marakasov2019-01-081-1/+2 * - Update to 3.5.1Dmitry Marakasov2019-01-061-2/+6 * Change cmake default behaviour to outsource.Tobias C. Berner2018-12-261-1/+1 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-12-121-0/+1 * - Update to 3.4.1Dmitry Marakasov2018-11-171-1/+1 * - Update to 3.4.0Dmitry Marakasov2018-11-031-2/+2 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-07-301-1/+1 * - Update to 3.3.1Dmitry Marakasov2018-05-051-44/+14 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2017-09-111-1/+1 * Revision bump of all ports with USE_GL after consolidation of mesa-libsMatthew Rezny2017-05-231-1/+1 * Bump PORTREVISIONs for ports depending on the canonical version of GCC andGerald Pfeifer2017-04-011-0/+1 * Spell CHOSEN_COMPILER_TYPE correctlyAntoine Brodin2016-11-131-1/+1 * Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.Mathieu Arnold2016-04-011-7/+7 * Add FLUIDSYNTH option generic description, and remove ad-hoc setting inAlexey Dokuchaev2016-03-021-1/+0 * - Update to 1.9.9Dmitry Marakasov2016-02-011-1/+1 * - Update to 1.9.7Dmitry Marakasov2016-01-161-2/+7 * Convert LICENSE= "GPLxx # or later" to "GPLxx+"Dmitry Marakasov2016-01-131-1/+1 * Convert g* and i* to USES=sqlite and USES=firebirdBaptiste Daroussin2016-01-111-2/+1 * - Update to 1.6.0Dmitry Marakasov2015-11-141-1/+1 * - Update to 1.4.1Dmitry Marakasov2015-10-261-3/+9 * - Update to git20150601Dmitry Marakasov2015-06-021-2/+2