From: Enlightenment S. <no-...@en...> - 2011-02-23 20:03:46
|
Log: elfe: use smaller floating icon. Author: captainigloo Date: 2011-02-23 12:03:39 -0800 (Wed, 23 Feb 2011) New Revision: 57279 Trac: http://trac.enlightenment.org/e/changeset/57279 Modified: trunk/E-MODULES-EXTRA/elfe/src/main.c Modified: trunk/E-MODULES-EXTRA/elfe/src/main.c =================================================================== --- trunk/E-MODULES-EXTRA/elfe/src/main.c 2011-02-23 20:03:34 UTC (rev 57278) +++ trunk/E-MODULES-EXTRA/elfe/src/main.c 2011-02-23 20:03:39 UTC (rev 57279) @@ -180,20 +180,25 @@ Evas_Object *ic; Evas_Coord x, y; Evas_Object *o_edje; + Evas_Coord ow, oh; + Evas_Coord size = 0; + evas_object_geometry_get(hwin->desktop, NULL, NULL, &ow, &oh); + size = MIN(ow, oh) / 5; + elfe_desktop_edit_mode_set(hwin->desktop, EINA_TRUE); o_edje = elm_layout_edje_get(hwin->layout); edje_object_signal_emit(o_edje, "appslist,toggle", "elfe"); - ic = elfe_utils_fdo_icon_add(o_edje, entry->icon, 92); + ic = elfe_utils_fdo_icon_add(o_edje, entry->icon, size); evas_object_show(ic); evas_pointer_canvas_xy_get(evas_object_evas_get(obj), &x, &y); - evas_object_resize(ic, 92, 92); - evas_object_move(ic, x - 92 / 2, y - 92 /2); + evas_object_resize(ic, size, size); + evas_object_move(ic, x - size / 2, y - size /2); hwin->floating_icon = ic; - + evas_object_del(hwin->allapps); hwin->allapps = NULL; evas_object_pass_events_set(ic, EINA_TRUE); |