[gnome-control-center/gnome-41] info-overview: Remove trailing space after CPU name



commit 6c79f2e9cb279cf2eadf7811d5144130fd50ac04
Author: Norbert Pfeiler <norbert pfeiler+git gmail com>
Date:   Mon Jan 17 03:08:00 2022 +0000

    info-overview: Remove trailing space after CPU name
    
    It was apparent when selecting the text, as the text is right aligned.
    
    »AMD® Ryzen threadripper 1950x 16-core processor × 32 «
    ↓
    »AMD® Ryzen threadripper 1950x 16-core processor × 32«

 panels/info-overview/cc-info-overview-panel.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
index f95477af6..aa2118590 100644
--- a/panels/info-overview/cc-info-overview-panel.c
+++ b/panels/info-overview/cc-info-overview-panel.c
@@ -611,10 +611,12 @@ get_cpu_info (const glibtop_sysinfo *info)
 
       count = GPOINTER_TO_INT (value);
       cleanedup = info_cleanup ((const char *) key);
+      if (cpu->len != 0)
+        g_string_append_printf (cpu, " ");
       if (count > 1)
-        g_string_append_printf (cpu, "%s \303\227 %d ", cleanedup, count);
+        g_string_append_printf (cpu, "%s \303\227 %d", cleanedup, count);
       else
-        g_string_append_printf (cpu, "%s ", cleanedup);
+        g_string_append_printf (cpu, "%s", cleanedup);
     }
 
   return g_strdup (cpu->str);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]