[Goodies-commits] r5815 - xfce4-power-manager/trunk/src
Ali Abdallah
aliov at xfce.org
Sun Oct 26 10:41:18 CET 2008
Author: aliov
Date: 2008-10-26 09:41:18 +0000 (Sun, 26 Oct 2008)
New Revision: 5815
Modified:
xfce4-power-manager/trunk/src/xfpm-battery.c
Log:
Fix hiding batt icon when battery is full
Modified: xfce4-power-manager/trunk/src/xfpm-battery.c
===================================================================
--- xfce4-power-manager/trunk/src/xfpm-battery.c 2008-10-26 09:29:54 UTC (rev 5814)
+++ xfce4-power-manager/trunk/src/xfpm-battery.c 2008-10-26 09:41:18 UTC (rev 5815)
@@ -366,16 +366,6 @@
G_OBJECT_CLASS(xfpm_battery_parent_class)->finalize(object);
}
-#ifdef HAVE_LIBNOTIFY
-static gboolean
-_hide_battery(gpointer data)
-{
- XfpmBatteryIcon *icon = (XfpmBatteryIcon*) data;
- g_object_set(G_OBJECT(icon),"visible",FALSE,NULL);
- return FALSE;
-}
-#endif
-
static void
xfpm_battery_refresh_tray_icon(XfpmBattery *batt)
{
@@ -444,12 +434,7 @@
}
else
{
-#ifdef HAVE_LIBNOTIFY
- if ( batt->notify_enabled ) g_timeout_add_seconds(6,(GSourceFunc)_hide_battery,icon);
- else g_object_set(G_OBJECT(icon),"visible",FALSE,NULL);
-#else
g_object_set(G_OBJECT(icon),"visible",FALSE,NULL);
-#endif
}
}
}
More information about the Goodies-commits
mailing list