From 92caee907bc4cd570c7cc2041ac566589cefb3e5 Mon Sep 17 00:00:00 2001 From: Callum McKenzie Date: Thu, 15 Jan 2009 00:30:56 +0000 Subject: Add code accidentally removed in the 2.25 backport. svn path=/branches/gnome-2-24/; revision=11201 --- cpufreq/ChangeLog | 5 +++++ cpufreq/src/cpufreq-applet.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/cpufreq/ChangeLog b/cpufreq/ChangeLog index f9969af1c..a5ddd3207 100644 --- a/cpufreq/ChangeLog +++ b/cpufreq/ChangeLog @@ -1,3 +1,8 @@ +2009-01-15 Callum McKenzie + + * src/cpufreq-applet.c (cpufreq_applet_update): Replace code + accidentally deleted in the 2.25 backport. + ==================== 2.24.3 ====================== 2009-01-13 Callum McKenzie diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c index 83d382568..1d788d777 100644 --- a/cpufreq/src/cpufreq-applet.c +++ b/cpufreq/src/cpufreq-applet.c @@ -874,6 +874,10 @@ cpufreq_applet_refresh (CPUFreqApplet *applet) total_size += pixmap_size; if (applet->box) { + do_unref = TRUE; + g_object_ref (applet->icon); + gtk_container_remove (GTK_CONTAINER (applet->box), applet->icon); + if (applet->labels_box) { g_object_ref (applet->label); gtk_container_remove (GTK_CONTAINER (applet->labels_box), applet->label); -- cgit v1.2.3