[gnome-system-monitor] Replace deprecated rsvg_init() with g_type_init()
- From: Chris KÃhl <chriskuehl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Replace deprecated rsvg_init() with g_type_init()
- Date: Sun, 8 Jan 2012 21:42:39 +0000 (UTC)
commit 5fcef0357278e9a583cc56e8543d3c9e01e7c4e6
Author: Chris KÃhl <chrisk openismus com>
Date: Sun Jan 8 22:36:36 2012 +0100
Replace deprecated rsvg_init() with g_type_init()
This required a version dependency bump for librsvg to 2.35 and made
the call to rsvg_term() superfluous.
configure.ac | 2 +-
src/procman.cpp | 7 +------
2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index db868b3..a9288a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,7 +36,7 @@ GTKMM_REQUIRED=2.99
GIOMM_REQUIRED=2.27
GLIBMM_REQUIRED=2.27
LIBXML_REQUIRED=2.0
-RSVG_REQUIRED=2.12
+RSVG_REQUIRED=2.35
PKG_CHECK_MODULES(PROCMAN, glib-2.0 >= $GLIB_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-3.0 >= $LIBWNCK_REQUIRED gtk+-3.0 >= $GTK_REQUIRED gnome-icon-theme >= $GNOME_ICON_THEME_REQUIRED gtkmm-3.0 >= $GTKMM_REQUIRED libxml-2.0 >= $LIBXML_REQUIRED librsvg-2.0 >= $RSVG_REQUIRED glibmm-2.4 >= $GLIBMM_REQUIRED giomm-2.4 >= $GIOMM_REQUIRED gmodule-2.0)
diff --git a/src/procman.cpp b/src/procman.cpp
index 2d35e22..fc53088 100644
--- a/src/procman.cpp
+++ b/src/procman.cpp
@@ -691,8 +691,7 @@ main (int argc, char *argv[])
exit (0);
}
- /* initialize rsvg */
- rsvg_init ();
+ g_type_init ();
gtk_window_set_default_icon_name ("utilities-system-monitor");
g_set_application_name(_("System Monitor"));
@@ -740,10 +739,6 @@ main (int argc, char *argv[])
glibtop_close ();
- // This function should only be called just before program exit.
- // See GNOME bug #592100 for a discussion about this.
- rsvg_term ();
-
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]