[eog] Fix warnings due to deprecations in librsvg-2.35
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Fix warnings due to deprecations in librsvg-2.35
- Date: Wed, 29 Feb 2012 20:51:51 +0000 (UTC)
commit 176ebc22b3e11271cb32b5e458cbc6c7cc3fb113
Author: Felix Riemann <friemann gnome org>
Date: Wed Feb 29 21:44:08 2012 +0100
Fix warnings due to deprecations in librsvg-2.35
src/main.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 2fca663..8736f5d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -46,6 +46,11 @@
#include <exempi/xmp.h>
#endif
+#if HAVE_RSVG
+#include <librsvg/rsvg.h>
+#include <librsvg/librsvg-features.h>
+#endif
+
#define EOG_CSS_FILE_PATH EOG_DATA_DIR G_DIR_SEPARATOR_S "eog.css"
static EogStartupFlags flags;
@@ -139,7 +144,7 @@ main (int argc, char **argv)
#ifdef HAVE_EXEMPI
xmp_init();
#endif
-#ifdef HAVE_RSVG
+#if defined (HAVE_RSVG) && !LIBRSVG_CHECK_VERSION(2, 35, 1)
rsvg_init();
#endif
eog_debug_init ();
@@ -188,7 +193,7 @@ main (int argc, char **argv)
if (startup_files)
g_strfreev (startup_files);
-#ifdef HAVE_RSVG
+#if defined (HAVE_RSVG) && !LIBRSVG_CHECK_VERSION(2, 35, 1)
rsvg_term();
#endif
#ifdef HAVE_EXEMPI
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]