forked from enlightenment/enlightenment
use either the min size set or calculate - as needed.
SVN revision: 33932
This commit is contained in:
parent
1ae409e642
commit
3d34b587af
|
@ -90,10 +90,17 @@ static void
|
||||||
_gc_orient(E_Gadcon_Client *gcc)
|
_gc_orient(E_Gadcon_Client *gcc)
|
||||||
{
|
{
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
Evas_Coord mw, mh;
|
||||||
|
|
||||||
inst = gcc->data;
|
inst = gcc->data;
|
||||||
e_gadcon_client_aspect_set(gcc, 16, 16);
|
mw = 0, mh = 0;
|
||||||
e_gadcon_client_min_size_set(gcc, 16, 16);
|
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 *
|
static char *
|
||||||
|
|
|
@ -79,10 +79,17 @@ static void
|
||||||
_gc_orient(E_Gadcon_Client *gcc)
|
_gc_orient(E_Gadcon_Client *gcc)
|
||||||
{
|
{
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
Evas_Coord mw, mh;
|
||||||
|
|
||||||
inst = gcc->data;
|
inst = gcc->data;
|
||||||
e_gadcon_client_aspect_set(gcc, 16, 16);
|
mw = 0, mh = 0;
|
||||||
e_gadcon_client_min_size_set(gcc, 16, 16);
|
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 *
|
static char *
|
||||||
|
|
|
@ -94,7 +94,13 @@ _gc_orient(E_Gadcon_Client *gcc)
|
||||||
Evas_Coord mw, mh;
|
Evas_Coord mw, mh;
|
||||||
|
|
||||||
inst = gcc->data;
|
inst = gcc->data;
|
||||||
|
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);
|
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);
|
e_gadcon_client_min_size_set(gcc, mw, mh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue