gnome-applets r11154 - in trunk/cpufreq: . src



Author: carlosgc
Date: Sun Dec 14 18:11:20 2008
New Revision: 11154
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11154&view=rev

Log:
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.



Modified:
   trunk/cpufreq/ChangeLog
   trunk/cpufreq/src/cpufreq-applet.c

Modified: trunk/cpufreq/src/cpufreq-applet.c
==============================================================================
--- trunk/cpufreq/src/cpufreq-applet.c	(original)
+++ trunk/cpufreq/src/cpufreq-applet.c	Sun Dec 14 18:11:20 2008
@@ -208,8 +208,6 @@
 
 	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 @@
 
         if (!GTK_WIDGET_VISIBLE (widget))
                 return 0;
-        
+	
         gtk_widget_size_request (widget, &req);
         
         switch (applet->orient) {
@@ -1022,6 +1020,8 @@
                 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



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