use either the min size set or calculate - as needed.

SVN revision: 33932
This commit is contained in:
Carsten Haitzler 2008-03-05 06:00:25 +00:00
parent 1ae409e642
commit 3d34b587af
3 changed files with 26 additions and 6 deletions

View File

@ -90,10 +90,17 @@ static void
_gc_orient(E_Gadcon_Client *gcc)
{
Instance *inst;
Evas_Coord mw, mh;
inst = gcc->data;
e_gadcon_client_aspect_set(gcc, 16, 16);
e_gadcon_client_min_size_set(gcc, 16, 16);
mw = 0, mh = 0;
edje_object_size_min_get(inst->o_battery, &mw, &mh);
if ((mw < 1) || (mh < 1))
edje_object_size_min_calc(inst->o_battery, &mw, &mh);
if (mw < 4) mw = 4;
if (mh < 4) mh = 4;
e_gadcon_client_aspect_set(gcc, mw, mh);
e_gadcon_client_min_size_set(gcc, mw, mh);
}
static char *

View File

@ -79,10 +79,17 @@ static void
_gc_orient(E_Gadcon_Client *gcc)
{
Instance *inst;
Evas_Coord mw, mh;
inst = gcc->data;
e_gadcon_client_aspect_set(gcc, 16, 16);
e_gadcon_client_min_size_set(gcc, 16, 16);
mw = 0, mh = 0;
edje_object_size_min_get(inst->o_clock, &mw, &mh);
if ((mw < 1) || (mh < 1))
edje_object_size_min_calc(inst->o_clock, &mw, &mh);
if (mw < 4) mw = 4;
if (mh < 4) mh = 4;
e_gadcon_client_aspect_set(gcc, mw, mh);
e_gadcon_client_min_size_set(gcc, mw, mh);
}
static char *

View File

@ -94,8 +94,14 @@ _gc_orient(E_Gadcon_Client *gcc)
Evas_Coord mw, mh;
inst = gcc->data;
edje_object_size_min_calc (inst->o_button, &mw, &mh);
e_gadcon_client_min_size_set (gcc, mw, mh);
mw = 0, mh = 0;
edje_object_size_min_get(inst->o_button, &mw, &mh);
if ((mw < 1) || (mh < 1))
edje_object_size_min_calc(inst->o_button, &mw, &mh);
if (mw < 4) mw = 4;
if (mh < 4) mh = 4;
e_gadcon_client_aspect_set(gcc, mw, mh);
e_gadcon_client_min_size_set(gcc, mw, mh);
}
static char *