Commit b6d6bf8b authored by Simon Steinbeiss's avatar Simon Steinbeiss
Browse files

panel-plugin: Prefer ac-adapter-symbolic (Fixes #103)

parent 232ad9df
Pipeline #4203 passed with stages
in 2 minutes and 13 seconds
......@@ -254,7 +254,7 @@ get_device_icon_name (UpClient *upower, UpDevice *device, gboolean is_panel)
else if ( type == UP_DEVICE_KIND_MEDIA_PLAYER )
icon_name = g_strdup (XFPM_MEDIA_PLAYER_ICON);
else if ( type == UP_DEVICE_KIND_LINE_POWER )
icon_name = g_strdup (XFPM_AC_ADAPTER_ICON);
icon_name = g_strdup_printf (is_panel ? "%s-%s", XFPM_AC_ADAPTER_ICON, "-symbolic" : "%s", XFPM_AC_ADAPTER_ICON);
else if ( type == UP_DEVICE_KIND_MONITOR )
icon_name = g_strdup (XFPM_MONITOR_ICON);
else if ( type == UP_DEVICE_KIND_TABLET )
......@@ -266,7 +266,7 @@ get_device_icon_name (UpClient *upower, UpDevice *device, gboolean is_panel)
else if (!up_client_get_lid_is_present (upower) &&
!up_client_get_on_battery (upower) &&
g_strcmp0 (upower_icon, "battery-missing-symbolic") == 0)
icon_name = g_strdup (XFPM_AC_ADAPTER_ICON);
icon_name = g_strdup_printf (is_panel ? "%s-%s", XFPM_AC_ADAPTER_ICON, "-symbolic" : "%s", XFPM_AC_ADAPTER_ICON);
else if ( g_strcmp0 (upower_icon, "") != 0 )
icon_name = g_strndup (upower_icon, icon_base_length);
......
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