summaryrefslogtreecommitdiff
path: root/gdk-pixbuf-loader
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 /gdk-pixbuf-loader
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 'gdk-pixbuf-loader')
-rw-r--r--gdk-pixbuf-loader/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk-pixbuf-loader/test.c b/gdk-pixbuf-loader/test.c
index efb69495..06784d5d 100644
--- a/gdk-pixbuf-loader/test.c
+++ b/gdk-pixbuf-loader/test.c
@@ -24,6 +24,8 @@
#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
+#include "rsvg-compat.h"
+
int
main (int argc, char **argv)
{
@@ -49,7 +51,7 @@ main (int argc, char **argv)
/* Use the locally built rsvg loader, not the system one */
g_setenv ("GDK_PIXBUF_MODULE_FILE", "./gdk-pixbuf.loaders", TRUE);
- g_type_init ();
+ RSVG_G_TYPE_INIT;
context = g_option_context_new ("- Pixbuf Test Loader");
g_option_context_add_main_entries (context, options_table, NULL);