summaryrefslogtreecommitdiff
blob: b6197fcc413e95e0613553659ae402fd9a488fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- cpufreq-applet.c~	2005-12-12 12:43:27.000000000 +0100
+++ cpufreq-applet.c	2006-04-13 17:56:41.000000000 +0200
@@ -525,10 +525,11 @@
                 gtk_widget_destroy (applet->label);
            
         applet->label = gtk_label_new (" --- ");
-        if (freq) {
-                gtk_label_set_text (GTK_LABEL (applet->label), freq);
-                g_free (freq);
-        }
+        if (applet->show_text_mode == MODE_TEXT_PERCENTAGE)
+                if (perc) gtk_label_set_text (GTK_LABEL (applet->label), perc);
+        else
+                if (freq) gtk_label_set_text (GTK_LABEL (applet->label), freq);
+        if (freq) g_free (freq);
            
         gtk_widget_size_request (applet->label, &req);
         if (applet->show_mode != MODE_GRAPHIC)