summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarinus Schraal <foser@gentoo.org>2006-04-13 16:32:41 +0000
committerMarinus Schraal <foser@gentoo.org>2006-04-13 16:32:41 +0000
commit3a17e95d94ee2ed29dc3b1d596e32a62c67d3b66 (patch)
treec6519af6df56462c39cbcf359c93de24a98991ac /gnome-base/gnome-applets/files
parentfix DEPEND so that we can use mips-headers with USE=nptl (diff)
downloadgentoo-2-3a17e95d94ee2ed29dc3b1d596e32a62c67d3b66.tar.gz
gentoo-2-3a17e95d94ee2ed29dc3b1d596e32a62c67d3b66.tar.bz2
gentoo-2-3a17e95d94ee2ed29dc3b1d596e32a62c67d3b66.zip
fix cpufreq startup preferences glitch
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'gnome-base/gnome-applets/files')
-rw-r--r--gnome-base/gnome-applets/files/gnome-applets-2.14.0-prefs_startup-r1.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnome-base/gnome-applets/files/gnome-applets-2.14.0-prefs_startup-r1.patch b/gnome-base/gnome-applets/files/gnome-applets-2.14.0-prefs_startup-r1.patch
new file mode 100644
index 000000000000..b6197fcc413e
--- /dev/null
+++ b/gnome-base/gnome-applets/files/gnome-applets-2.14.0-prefs_startup-r1.patch
@@ -0,0 +1,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)