diff options
author | Ali Abdallah <aliov@xfce.org> | 2010-01-22 16:16:10 +0100 |
---|---|---|
committer | Ali Abdallah <aliov@xfce.org> | 2010-01-22 16:16:10 +0100 |
commit | 86c848dc1aad88f772500c4e25feabdd36e41a4f (patch) | |
tree | 9ff6fd4cb467136541d824edb3ce2e9237480838 /src/xfpm-battery.c | |
parent | f654a43b5d33a50ac63c15178c75c2a9d80b6012 (diff) | |
download | ixfce4-power-manager-86c848dc1aad88f772500c4e25feabdd36e41a4f.tar.gz |
Replace Information tray menu item by Power information, the new dialog in an external program, xfce4-power-information
will be able to show information about power devices+processor wakeups.
Diffstat (limited to 'src/xfpm-battery.c')
-rw-r--r-- | src/xfpm-battery.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/xfpm-battery.c b/src/xfpm-battery.c index 9df5b36b..aed541a1 100644 --- a/src/xfpm-battery.c +++ b/src/xfpm-battery.c @@ -31,7 +31,6 @@ #include <libxfce4util/libxfce4util.h> #include "xfpm-battery.h" -#include "xfpm-battery-info.h" #include "xfpm-dbus.h" #include "xfpm-icons.h" #include "xfpm-xfconf.h" @@ -40,6 +39,7 @@ #include "xfpm-enum-glib.h" #include "xfpm-enum-types.h" #include "xfpm-debug.h" +#include "xfpm-power-common.h" #include "xfpm-common.h" static void xfpm_battery_finalize (GObject *object); @@ -510,7 +510,7 @@ xfpm_battery_changed_cb (DBusGProxy *proxy, XfpmBattery *battery) { GHashTable *props; - props = xfpm_dbus_get_interface_properties (battery->priv->proxy_prop, DKP_IFACE_DEVICE); + props = xfpm_power_get_interface_properties (battery->priv->proxy_prop, DKP_IFACE_DEVICE); if ( props ) xfpm_battery_refresh (battery, props); @@ -752,15 +752,3 @@ XfpmBatteryCharge xfpm_battery_get_charge (XfpmBattery *battery) return battery->priv->charge; } - -void xfpm_battery_show_info (XfpmBattery *battery) -{ - GHashTable *props; - gchar *icon; - - props = xfpm_dbus_get_interface_properties (battery->priv->proxy_prop, DKP_IFACE_DEVICE); - icon = g_strdup_printf ("%s100", battery->priv->icon_prefix); - xfpm_battery_info_show (props, icon); - g_free (icon); - g_hash_table_destroy (props); -} |