[mate-system-monitor] add mate-system-monitor_fix-indentation.patch
Wolfgang Ulbrich
raveit65 at fedoraproject.org
Fri Jul 26 13:17:51 UTC 2013
commit 6b2650470fd3611b69c83b4b2521a4198545b0c9
Author: raveit65 <chat-to-me at raveit.de>
Date: Fri Jul 26 15:17:37 2013 +0200
add mate-system-monitor_fix-indentation.patch
mate-system-monitor_fix-indentation.patch | 54 +++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/mate-system-monitor_fix-indentation.patch b/mate-system-monitor_fix-indentation.patch
new file mode 100644
index 0000000..4542b9c
--- /dev/null
+++ b/mate-system-monitor_fix-indentation.patch
@@ -0,0 +1,54 @@
+From 459dad23fc583cff00201935f562a084284344aa Mon Sep 17 00:00:00 2001
+From: Stefano Karapetsas <stefano at karapetsas.com>
+Date: Fri, 28 Jun 2013 10:44:33 +0000
+Subject: Fix indentation
+
+---
+diff --git a/src/procman.cpp b/src/procman.cpp
+index dc0c9ea..67cc3df 100644
+--- a/src/procman.cpp
++++ b/src/procman.cpp
+@@ -69,12 +69,12 @@ ProcData* ProcData::get_instance()
+ static gboolean
+ has_key (gchar **keys, const gchar *key)
+ {
+- gchar **loop = keys;
++ gchar **loop = keys;
+
+ while (*loop) {
+ if (!strcmp (*loop++, key))
+ return TRUE;
+- }
++ }
+
+ return FALSE;
+ }
+@@ -189,19 +189,19 @@ static void
+ color_changed_cb (GSettings *settings, const gchar *key, gpointer data)
+ {
+ ProcData * const procdata = static_cast<ProcData*>(data);
+- gchar **keys;
+- gchar *color = NULL;
++ gchar **keys;
++ gchar *color = NULL;
+
+- keys = g_settings_list_keys (settings);
+- if (has_key (keys, key))
++ keys = g_settings_list_keys (settings);
++ if (has_key (keys, key))
+ color = g_settings_get_string (settings, key);
+ else
+ color = g_strdup("#000000"); /* black default color */
+ g_strfreev (keys);
+
+ if (g_str_has_prefix (key, "cpu-color")) {
+- for (int i = 0; i < procdata->config.num_cpus; i++) {
+- string cpu_key = make_string(g_strdup_printf("cpu-color%d", i));
++ for (int i = 0; i < procdata->config.num_cpus; i++) {
++ string cpu_key = make_string(g_strdup_printf("cpu-color%d", i));
+ if (cpu_key == key) {
+ gdk_color_parse (color, &procdata->config.cpu_color[i]);
+ procdata->cpu_graph->colors.at(i) = procdata->config.cpu_color[i];
+--
+cgit
+
More information about the scm-commits
mailing list