forked from enlightenment/efl
efl ui win - stop trying to get data of non-image icons
x11 updates trying to update x properties from image data when icon is not an image is causing lots of error spam. fix this to check type first before getting data.
This commit is contained in:
parent
81242af6f9
commit
892f4abe37
|
@ -3127,6 +3127,8 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
|
||||||
{
|
{
|
||||||
void *data;
|
void *data;
|
||||||
|
|
||||||
|
if (efl_isa(sd->icon, EFL_CANVAS_IMAGE_CLASS))
|
||||||
|
{
|
||||||
data = evas_object_image_data_get(sd->icon, EINA_FALSE);
|
data = evas_object_image_data_get(sd->icon, EINA_FALSE);
|
||||||
if (data)
|
if (data)
|
||||||
{
|
{
|
||||||
|
@ -3165,6 +3167,7 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
|
||||||
evas_object_image_data_set(sd->icon, data);
|
evas_object_image_data_set(sd->icon, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (sd->type)
|
switch (sd->type)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue