summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2022-01-05 11:50:11 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2022-01-05 11:50:11 +0000
commit0f17a85674ae9d13471c737672778c3b24a0480e (patch)
tree0bb2c2803c544ee2eb01d05fff732dc3db49c1dd
parent32e65c1f21c0de6285927070d5ca329137bd40be (diff)
downloadenlightenment-0f17a85674ae9d13471c737672778c3b24a0480e.tar.gz
systray - add more debugging to find clients that act oddly
@fix
-rw-r--r--src/modules/systray/e_mod_notifier_host.c25
1 files 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 a1ca4a3ea6..76b56ee5a7 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