[Goodies-commits] r7124 - in xfce4-power-manager/trunk: . panel-plugins/brightness

Ali Abdallah aliov at xfce.org
Mon Apr 6 16:06:07 CEST 2009


Author: aliov
Date: 2009-04-06 14:06:07 +0000 (Mon, 06 Apr 2009)
New Revision: 7124

Modified:
   xfce4-power-manager/trunk/ChangeLog
   xfce4-power-manager/trunk/panel-plugins/brightness/brightness-plugin.c
Log:
Correct tooltip in the brightness plugin

Modified: xfce4-power-manager/trunk/ChangeLog
===================================================================
--- xfce4-power-manager/trunk/ChangeLog	2009-04-06 14:05:45 UTC (rev 7123)
+++ xfce4-power-manager/trunk/ChangeLog	2009-04-06 14:06:07 UTC (rev 7124)
@@ -1,4 +1,7 @@
 
+2009-04-06 16:06 Ali aliov at xfce.org 
+	 * : Correct tooltip in the brightness plugin
+
 2009-04-06 14:37 Ali aliov at xfce.org 
 	 * : Change brightness on scroll mouse events
 

Modified: xfce4-power-manager/trunk/panel-plugins/brightness/brightness-plugin.c
===================================================================
--- xfce4-power-manager/trunk/panel-plugins/brightness/brightness-plugin.c	2009-04-06 14:05:45 UTC (rev 7123)
+++ xfce4-power-manager/trunk/panel-plugins/brightness/brightness-plugin.c	2009-04-06 14:06:07 UTC (rev 7124)
@@ -78,18 +78,10 @@
 static void
 brightness_plugin_set_tooltip (brightness_t *brightness)
 {
-    gchar *tooltip;
-    
     if ( brightness->hw_found )
-    {
-	tooltip = g_strdup_printf (_("Current reported brightness level \"%i\""), brightness->current_level);
-	gtk_widget_set_tooltip_text (brightness->button, tooltip);
-	g_free (tooltip);
-    }
+	gtk_widget_set_tooltip_text (brightness->button, _("Control your LCD brightness"));
     else
-    {
 	gtk_widget_set_tooltip_text (brightness->button, _("No device found"));
-    }
 }
 
 static gint 




More information about the Goodies-commits mailing list