summaryrefslogtreecommitdiff
path: root/cpufreq
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-12-14 18:11:20 +0000
committerCarlos Garcia Campos <carlosgc@src.gnome.org>2008-12-14 18:11:20 +0000
commit7ff1ec169c8dc6e32ea51a139f907f7e282e479b (patch)
treee8e1e119512b60caefaba5bfec9ccf48f4723c22 /cpufreq
parent5cbd408164a8a244a7bccf8d35970e72f1858dc9 (diff)
Show the applet when the setup is done rather than in the init method.
2008-12-14 Carlos Garcia Campos <carlosgc@gnome.org> * src/cpufreq-applet.c: (cpufreq_applet_init), (cpufreq_applet_setup): Show the applet when the setup is done rather than in the init method. svn path=/trunk/; revision=11154
Diffstat (limited to 'cpufreq')
-rw-r--r--cpufreq/ChangeLog6
-rw-r--r--cpufreq/src/cpufreq-applet.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/cpufreq/ChangeLog b/cpufreq/ChangeLog
index 8fc364f29..6ecaf07c1 100644
--- a/cpufreq/ChangeLog
+++ b/cpufreq/ChangeLog
@@ -1,5 +1,11 @@
2008-12-14 Carlos Garcia Campos <carlosgc@gnome.org>
+ * src/cpufreq-applet.c: (cpufreq_applet_init),
+ (cpufreq_applet_setup): Show the applet when the setup is done
+ rather than in the init method.
+
+2008-12-14 Carlos Garcia Campos <carlosgc@gnome.org>
+
* src/cpufreq-monitor-sysfs.c:
* src/cpufreq-selector/cpufreq-selector-procfs.c:
* src/cpufreq-selector/cpufreq-selector-sysfs.c:
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index 8f785d67e..a17c048a6 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -208,8 +208,6 @@ cpufreq_applet_init (CPUFreqApplet *applet)
gtk_container_add (GTK_CONTAINER (applet), applet->container);
gtk_widget_show (applet->container);
-
- gtk_widget_show (GTK_WIDGET (applet));
}
static void
@@ -836,7 +834,7 @@ cpufreq_applet_get_widget_size (CPUFreqApplet *applet,
if (!GTK_WIDGET_VISIBLE (widget))
return 0;
-
+
gtk_widget_size_request (widget, &req);
switch (applet->orient) {
@@ -1022,6 +1020,8 @@ cpufreq_applet_setup (CPUFreqApplet *applet)
atk_object_set_name (atk_obj, _("CPU Frequency Scaling Monitor"));
atk_object_set_description (atk_obj, _("This utility shows the current CPU Frequency"));
}
+
+ gtk_widget_show (GTK_WIDGET (applet));
}
static gboolean