raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0f17a85674ae9d13471c737672778c3b24a0480e

commit 0f17a85674ae9d13471c737672778c3b24a0480e
Author: Carsten Haitzler <ras...@rasterman.com>
Date:   Wed Jan 5 11:50:11 2022 +0000

    systray - add more debugging to find clients that act oddly
    
    @fix
---
 src/modules/systray/e_mod_notifier_host.c | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/src/modules/systray/e_mod_notifier_host.c 
b/src/modules/systray/e_mod_notifier_host.c
index a1ca4a3ea..76b56ee5a 100644
--- a/src/modules/systray/e_mod_notifier_host.c
+++ b/src/modules/systray/e_mod_notifier_host.c
@@ -78,6 +78,7 @@ image_load(const char *name, const char *path, uint32_t 
*imgdata, int w, int h,
 {
    const char **ext, *exts[] =
    {
+      ".svg",
       ".png",
       ".jpg",
       NULL
@@ -103,7 +104,11 @@ image_load(const char *name, const char *path, uint32_t 
*imgdata, int w, int h,
                };
 
              snprintf(buf, sizeof(buf), "%s/%s", path, *theme);
-             if (!ecore_file_is_dir(buf)) continue;
+             if (!ecore_file_is_dir(buf))
+               {
+                  printf("SYSTRAY: icon theme dir [%s] does not exist\n", buf);
+                  continue;
+               }
              for (i = sizes; *i; i++)
                {
                   snprintf(buf, sizeof(buf), "%s/%s/%ux%u", path, *theme, *i, 
*i);
@@ -113,15 +118,19 @@ image_load(const char *name, const char *path, uint32_t 
*imgdata, int w, int h,
                        snprintf(buf, sizeof(buf), "%s/%s/%ux%u/status/%s%s", 
path, *theme, *i, *i, name, *ext);
                        if (ecore_file_exists(buf))
                          {
+                            printf("SYSTRAY: actually load [%s] size=%lli\n", 
buf, ecore_file_size(buf));
                             e_icon_file_set(image, buf);
                             return;
                          }
+                       printf("SYSTRAY: image [%s] does not exist\n", buf);
                        snprintf(buf, sizeof(buf), "%s/%s/%ux%u/apps/%s%s", 
path, *theme, *i, *i, name, *ext);
                        if (ecore_file_exists(buf))
                          {
+                            printf("SYSTRAY: actually load [%s] size=%lli\n", 
buf, ecore_file_size(buf));
                             e_icon_file_set(image, buf);
                             return;
                          }
+                       printf("SYSTRAY: image [%s] does not exist\n", buf);
                     }
                }
           }
@@ -130,16 +139,23 @@ image_load(const char *name, const char *path, uint32_t 
*imgdata, int w, int h,
              snprintf(buf, sizeof(buf), "%s/%s%s", path, name, *ext);
              if (ecore_file_exists(buf))
                {
+                  printf("SYSTRAY: actually load [%s] size=%lli\n", buf, 
ecore_file_size(buf));
                   e_icon_file_set(image, buf);
                   return;
                }
+             printf("SYSTRAY: image [%s] does not exist\n", buf);
           }
      }
-   if (name && name[0] && e_util_icon_theme_set(image, name)) return;
+   if (name && name[0] && e_util_icon_theme_set(image, name))
+     {
+        printf("SYSTRAY: set icon theme %s\n", name);
+        return;
+     }
    if (imgdata)
      {
         Evas_Object *o;
 
+        printf("SYSTRAY: set icon custom data %ix%i\n", w, h);
         o = evas_object_image_filled_add(evas_object_evas_get(image));
         evas_object_image_alpha_set(o, 1);
         evas_object_image_size_set(o, w, h);
@@ -147,7 +163,10 @@ image_load(const char *name, const char *path, uint32_t 
*imgdata, int w, int h,
         e_icon_image_object_set(image, o);
      }
    else
-     e_util_icon_theme_set(image, "dialog-error");
+     {
+        e_util_icon_theme_set(image, "dialog-error");
+        printf("SYSTRAY: icon requested just does not exist - error in 
client\n");
+     }
 }
 
 static void

-- 


Reply via email to