Luncher: Fix Coverity Issues: CID 1366276 1366275

This commit is contained in:
Stephen okra Houston 2016-11-28 13:04:38 -06:00
parent cf088eb989
commit d4a045278c
2 changed files with 2 additions and 9 deletions

View File

@ -1563,7 +1563,7 @@ _bar_mouse_move(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, v
Edje_Message_Int_Set *msg;
Evas_Coord x, y, w, h;
evas_object_geometry_get(ic->o_layout, &x, &y, &w, &h);
evas_object_geometry_get(ic->o_icon, &x, &y, &w, &h);
msg = alloca(sizeof(Edje_Message_Int_Set) + (7 * sizeof(int)));
msg->count = 7;
msg->val[0] = px;

View File

@ -250,8 +250,7 @@ _grid_icon_add(Instance *inst, Efreet_Desktop *desktop)
Icon *ic;
ic = E_NEW(Icon, 1);
if (desktop)
efreet_desktop_ref(desktop);
efreet_desktop_ref(desktop);
ic->desktop = desktop;
ic->inst = inst;
ic->preview = NULL;
@ -302,12 +301,6 @@ _grid_icon_add(Instance *inst, Efreet_Desktop *desktop)
path = e_theme_edje_file_get("base/theme/icons", "e/icons/unknown");
k = "e/icons/unknown";
}
if (path && desktop->icon && !k)
{
len = strlen(desktop->icon);
if ((len > 4) && (!strcasecmp(desktop->icon + len - 4, ".edj")))
k = "icon";
}
}
elm_image_file_set(ic->o_icon, path, k);
elm_object_tooltip_text_set(ic->o_icon, desktop->name);