Commit edd06d36 authored by Simon Steinbeiss's avatar Simon Steinbeiss Committed by Simon Steinbeiß
Browse files

Also use symbolic icons in battery notifications

parent c5755b02
......@@ -233,9 +233,13 @@ get_device_icon_name (UpClient *upower, UpDevice *device, gboolean is_panel)
if ( type == UP_DEVICE_KIND_BATTERY && is_panel )
{
if ( state == UP_DEVICE_STATE_CHARGING || state == UP_DEVICE_STATE_PENDING_CHARGE)
icon_name = g_strdup_printf ("%s-%s-%s", XFPM_BATTERY_LEVEL_ICON, xfpm_battery_get_icon_index (type, percentage), "charging");
icon_name = g_strdup_printf ("%s-%s-%s", XFPM_BATTERY_LEVEL_ICON, xfpm_battery_get_icon_index (type, percentage), "charging-symbolic");
else if ( state == UP_DEVICE_STATE_DISCHARGING || state == UP_DEVICE_STATE_PENDING_DISCHARGE)
icon_name = g_strdup_printf ("%s-%s", XFPM_BATTERY_LEVEL_ICON, xfpm_battery_get_icon_index (type, percentage));
icon_name = g_strdup_printf ("%s-%s-%s", XFPM_BATTERY_LEVEL_ICON, xfpm_battery_get_icon_index (type, percentage), "symbolic");
else if ( state == UP_DEVICE_STATE_FULLY_CHARGED)
icon_name = g_strdup_printf ("%s-%s", XFPM_BATTERY_LEVEL_ICON, "100-charged-symbolic");
else
icon_name = g_strdup ("battery-missing-symbolic");
}
else if ( type == UP_DEVICE_KIND_UPS )
icon_name = g_strdup (XFPM_UPS_ICON);
......
......@@ -520,7 +520,7 @@ power_manager_button_update_device_icon_and_details (PowerManagerButton *button,
/* update the icon */
g_free (button->priv->panel_icon_name);
#ifdef XFCE_PLUGIN
button->priv->panel_icon_name = g_strdup_printf ("%s-%s", icon_name, "symbolic");
button->priv->panel_icon_name = g_strdup (icon_name);
button->priv->panel_fallback_icon_name = g_strdup_printf ("%s-%s", menu_icon_name, "symbolic");
#else
button->priv->panel_icon_name = g_strdup (icon_name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment