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:
Carsten Haitzler 2016-11-27 22:50:03 +09:00
parent 81242af6f9
commit 892f4abe37
1 changed files with 29 additions and 26 deletions

View File

@ -3127,6 +3127,8 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
{
void *data;
if (efl_isa(sd->icon, EFL_CANVAS_IMAGE_CLASS))
{
data = evas_object_image_data_get(sd->icon, EINA_FALSE);
if (data)
{
@ -3165,6 +3167,7 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
evas_object_image_data_set(sd->icon, data);
}
}
}
switch (sd->type)
{