Codebase list xapp / 90c858f
sn-item.c: Always set an available icon, regardless of visibility state requested by an app. The icon and visibility state aren't necessarily set at the same time. Reproduced with kdeconnect. Michael Webster 3 years ago
1 changed file(s) with 10 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
392392 {
393393 surface = new_props->attention_icon_surface;
394394 }
395 else
396 if (new_props->icon_surface)
397 {
398 surface = new_props->icon_surface;
399 }
395400 }
396401
397402 if (surface != NULL)
520525 {
521526 const gchar *name_to_use = NULL;
522527
523 if (item->status == STATUS_ACTIVE)
528 // Set an icon here, even if we're passive (hidden) - eventually only the
529 // status property might change, but we wouldn't have an icon then (unless
530 // the app sets the icon at the same time).
531 if (item->status == STATUS_ACTIVE || item->status == STATUS_PASSIVE)
524532 {
525533 if (new_props->icon_name)
526534 {
725733 {
726734 if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
727735 {
728 g_critical ("Could get propertyies for %s: %s\n",
736 g_critical ("Could not get properties for %s: %s\n",
729737 g_dbus_proxy_get_name (item->sn_item_proxy),
730738 error->message);
731739 }