summaryrefslogtreecommitdiffstats
path: root/main/gnome-system-monitor/008-rsvg-fix.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-25 16:32:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-25 19:52:57 +0000
commit2749b73eab8f40766ed08ed06771943107704f94 (patch)
tree1edf576255ee5b7fddad4cb5f82dac4b68eb73a9 /main/gnome-system-monitor/008-rsvg-fix.patch
parentd98256295edd37208538ecd0241d17eedf5fbeb0 (diff)
downloadaports-2749b73eab8f40766ed08ed06771943107704f94.tar.bz2
aports-2749b73eab8f40766ed08ed06771943107704f94.tar.xz
main/gnome-system-monitor: rebuild against glib-2.32
Diffstat (limited to 'main/gnome-system-monitor/008-rsvg-fix.patch')
-rw-r--r--main/gnome-system-monitor/008-rsvg-fix.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/main/gnome-system-monitor/008-rsvg-fix.patch b/main/gnome-system-monitor/008-rsvg-fix.patch
new file mode 100644
index 000000000..9bad7152a
--- /dev/null
+++ b/main/gnome-system-monitor/008-rsvg-fix.patch
@@ -0,0 +1,54 @@
+From 7c700dd09c30e866fd3e358388d6a518f417b41c Mon Sep 17 00:00:00 2001
+From: Chris Kühl <chrisk@openismus.com>
+Date: Thu, 27 Jan 2011 14:20:45 +0000
+Subject: Moved rsvg_init and rsvg_term into main to fix Bug #613752.
+
+---
+diff --git a/src/gsm_color_button.c b/src/gsm_color_button.c
+index ef7b3de..e829694 100644
+--- a/src/gsm_color_button.c
++++ b/src/gsm_color_button.c
+@@ -595,8 +595,6 @@ gsm_color_button_init (GSMColorButton * color_button)
+ {
+ color_button->priv = GSM_COLOR_BUTTON_GET_PRIVATE (color_button);
+
+- rsvg_init ();
+-
+ color_button->priv->color.red = 0;
+ color_button->priv->color.green = 0;
+ color_button->priv->color.blue = 0;
+@@ -645,7 +643,6 @@ gsm_color_button_finalize (GObject * object)
+ cairo_surface_destroy (color_button->priv->image_buffer);
+ color_button->priv->image_buffer = NULL;
+
+- rsvg_term ();
+ G_OBJECT_CLASS (gsm_color_button_parent_class)->finalize (object);
+ }
+
+diff --git a/src/procman.cpp b/src/procman.cpp
+index 19c4cbc..f20de72 100644
+--- a/src/procman.cpp
++++ b/src/procman.cpp
+@@ -715,6 +715,9 @@ main (int argc, char *argv[])
+ exit (0);
+ }
+
++ /* initialize rsvg */
++ rsvg_init ();
++
+ gtk_window_set_default_icon_name ("utilities-system-monitor");
+ g_set_application_name(_("System Monitor"));
+
+@@ -753,6 +756,10 @@ 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;
+ }
+
+--
+cgit v0.9