[Goodies-commits] r5835 - xfce4-power-manager/trunk/src

Ali Abdallah aliov at xfce.org
Mon Oct 27 15:29:06 CET 2008


Author: aliov
Date: 2008-10-27 14:29:06 +0000 (Mon, 27 Oct 2008)
New Revision: 5835

Modified:
   xfce4-power-manager/trunk/src/xfpm-battery-icon.c
Log:
Set battery state before sending notification

Modified: xfce4-power-manager/trunk/src/xfpm-battery-icon.c
===================================================================
--- xfce4-power-manager/trunk/src/xfpm-battery-icon.c	2008-10-27 12:17:34 UTC (rev 5834)
+++ xfce4-power-manager/trunk/src/xfpm-battery-icon.c	2008-10-27 14:29:06 UTC (rev 5835)
@@ -392,6 +392,7 @@
     XFPM_DEBUG("icon %s\n",icon_name);
     
     if ( battery_icon->state != state && state != NOT_FULL ) {
+	g_object_set(G_OBJECT(battery_icon),"battery-state",state,NULL);
 #ifdef HAVE_LIBNOTIFY
     gboolean visible;
     g_object_get(G_OBJECT(battery_icon),"visible",&visible,NULL);
@@ -410,7 +411,6 @@
             }
         }
 #endif     
-    g_object_set(G_OBJECT(battery_icon),"battery-state",state,NULL);
     }
 
     if ( icon_prefix && icon_name )




More information about the Goodies-commits mailing list