Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : apps/entice
Dir : e17/apps/entice/src/bin
Modified Files:
entice.c
Log Message:
support min/max sizes for entice themes
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/entice.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- entice.c 27 Mar 2004 08:32:51 -0000 1.38
+++ entice.c 27 Mar 2004 18:32:09 -0000 1.39
@@ -97,6 +97,7 @@
char *layout = NULL;
Evas_Object *o = NULL;
const char *str = NULL;
+ Evas_Coord ew, eh;
if ((ee) && (e = (Entice *) malloc(sizeof(Entice))))
{
@@ -112,6 +113,21 @@
evas_object_move(o, 0, 0);
evas_object_resize(o, w, h);
evas_object_layer_set(o, 0);
+
+ edje_object_size_min_get(o, &ew, &eh);
+ if ((ew > 0) && (eh > 0))
+ ecore_evas_size_min_set(ee, (int) ew, (int) eh);
+
+ edje_object_size_max_get(o, &ew, &eh);
+
+ if ((ew > 0) && (eh > 0))
+ {
+ if (ew > INT_MAX)
+ ew = INT_MAX;
+ if (eh > INT_MAX)
+ eh = INT_MAX;
+ ecore_evas_size_max_set(ee, (int) ew, (int) eh);
+ }
hookup_edje_signals(o);
evas_object_show(o);
e->edje = o;
@@ -139,12 +155,10 @@
if (edje_object_part_exists(e->edje, "EnticeThumbnailArea"))
{
- double w, h;
-
edje_object_part_geometry_get(e->edje, "EnticeThumbnailArea", NULL,
- NULL, &w, &h);
+ NULL, &ew, &eh);
- if (w > h)
+ if (ew > eh)
{
e_container_fill_policy_set(e->container,
CONTAINER_FILL_POLICY_FILL_Y |
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs