Hi guys!
Sorry for screwing up your perfect code by previous patch. Hope this one
will be more appropriate.
Regards, Victor.
Shelf content placement on screen resize fix.
e_shelf.c | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
Index: e17-svn/src/bin/e_shelf.c
===================================================================
--- e17-svn/src/bin/e_shelf.c (revision 41733)
+++ e17-svn/src/bin/e_shelf.c (working copy)
@@ -228,11 +228,30 @@
{
Eina_List *l;
E_Shelf *es;
+ Evas_Coord w, h;
for (l = shelves; l; l = l->next)
{
es = l->data;
- if (es->zone == zone) e_shelf_position_calc(es);
+ if (es->zone == zone)
+ {
+ E_Gadcon * gc;
+
+ gc = es->gadcon;
+ if (gc->min_size_request.func)
+ {
+ /* let gadcon container decrease to any size */
+ edje_extern_object_min_size_set(gc->o_container, 0, 0);
+ }
+ evas_object_smart_callback_call (gc->o_container, "min_size_request", NULL);
+ e_shelf_position_calc(es);
+ if (gc->min_size_request.func)
+ {
+ evas_object_geometry_get(gc->o_container, NULL, NULL, &w, &h);
+ /* fix gadcon container min size to current geometry */
+ edje_extern_object_min_size_set(gc->o_container, w, h);
+ }
+ }
}
}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel