aboutsummaryrefslogtreecommitdiff
path: root/gmime-filter-reply.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-09-03 08:55:42 -0300
committerDavid Bremner <david@tethera.net>2017-09-04 08:04:44 -0300
commit0260ee371ea561d3e6876ab800e934ddeacb3482 (patch)
tree90fd6c192a1ef3844bf83c4823b7eec4678d87df /gmime-filter-reply.c
parent752653880833fb631ec3e350525d4bdb91efe290 (diff)
lib&cli: use g_object_new instead of g_object_newv
'g_object_newv' is deprecated, and prints annoying warnings. The warnings suggest using 'g_object_new_with_properties', but that's only available since glib 2.55 (i.e. a month ago as of this writing). Since we don't actuall pass any properties, it seems we can just call 'g_object_new'.
Diffstat (limited to 'gmime-filter-reply.c')
-rw-r--r--gmime-filter-reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmime-filter-reply.c b/gmime-filter-reply.c
index b269db4e..847426bf 100644
--- a/gmime-filter-reply.c
+++ b/gmime-filter-reply.c
@@ -201,7 +201,7 @@ g_mime_filter_reply_new (gboolean encode)
{
GMimeFilterReply *new_reply;
- new_reply = (GMimeFilterReply *) g_object_newv (GMIME_TYPE_FILTER_REPLY, 0, NULL);
+ new_reply = (GMimeFilterReply *) g_object_new (GMIME_TYPE_FILTER_REPLY, NULL);
new_reply->encode = encode;
return (GMimeFilter *) new_reply;