summaryrefslogtreecommitdiff
path: root/src/procman.cpp
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2013-01-01 15:45:06 -0600
committerScott Balneaves <[email protected]>2013-01-01 15:45:06 -0600
commit73da57f093a422229c053333a81738a97ac000fb (patch)
treeb7b0dfb6b8bf00d5bc8d3c446871ad0a46878bbc /src/procman.cpp
parentfd824a7e03a8303801db03abf59fbdd5dfe3e39a (diff)
downloadmate-system-monitor-73da57f093a422229c053333a81738a97ac000fb.tar.bz2
mate-system-monitor-73da57f093a422229c053333a81738a97ac000fb.tar.xz
Fix deprecations
Diffstat (limited to 'src/procman.cpp')
-rw-r--r--src/procman.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/procman.cpp b/src/procman.cpp
index 14f3465..c534f8d 100644
--- a/src/procman.cpp
+++ b/src/procman.cpp
@@ -196,7 +196,7 @@ color_changed_cb (GSettings *settings, const gchar *key, gpointer data)
if (has_key (keys, key))
color = g_settings_get_string (settings, key);
else
- color = "#FFFFFF"; /* white default color */
+ color = g_strdup("#FFFFFF"); /* white default color */
g_strfreev (keys);
if (g_str_has_prefix (key, "cpu-color")) {
@@ -721,8 +721,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"));
@@ -761,10 +760,6 @@ main (int argc, char *argv[])
glibtop_close ();
- // This function should only be called just before program exit.
- // See MATE bug #592100 for a discussion about this.
- rsvg_term ();
-
return 0;
}