summaryrefslogtreecommitdiff
path: root/rsvg-convert.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2015-04-16 14:56:44 -0500
committerFederico Mena Quintero <federico@gnome.org>2015-04-16 15:08:10 -0500
commit91bbe3456934bf071379977d00bde571338ba5aa (patch)
treede408d4c72786f61305d45f5b931c0eea3e4f713 /rsvg-convert.c
parent9db05c8e736ade8c2d37249d01e4bdc20650f24c (diff)
downloadlibrsvg-91bbe3456934bf071379977d00bde571338ba5aa.tar.gz
Handle the deprecation of g_type_init() to avoid compiler warnings
Maybe we should increment the glib version requirement one of these days...
Diffstat (limited to 'rsvg-convert.c')
-rw-r--r--rsvg-convert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsvg-convert.c b/rsvg-convert.c
index c752c0a5..76862d15 100644
--- a/rsvg-convert.c
+++ b/rsvg-convert.c
@@ -50,6 +50,7 @@
#include "rsvg-css.h"
#include "rsvg.h"
+#include "rsvg-compat.h"
#include "rsvg-size-callback.h"
#ifdef CAIRO_HAS_PS_SURFACE
@@ -164,7 +165,7 @@ main (int argc, char **argv)
/* Set the locale so that UTF-8 filenames work */
setlocale(LC_ALL, "");
- g_type_init ();
+ RSVG_G_TYPE_INIT;
g_option_context = g_option_context_new (_("- SVG Converter"));
g_option_context_add_main_entries (g_option_context, options_table, NULL);