shelf gadgets no longer tries to set min/max sizes that are larger than the shelf

SVN revision: 72786
This commit is contained in:
Mike Blumenkrantz 2012-06-25 08:22:16 +00:00
parent ef3bb217b4
commit 1c0ae4ffcb
1 changed files with 6 additions and 2 deletions

View File

@ -1697,9 +1697,13 @@ _e_gadcon_client_free(E_Gadcon_Client *gcc)
static void static void
_e_gadcon_moveresize_handle(E_Gadcon_Client *gcc) _e_gadcon_moveresize_handle(E_Gadcon_Client *gcc)
{ {
Evas_Coord w, h; int w, h, mw, mh;
evas_object_geometry_get(gcc->o_box, NULL, NULL, &w, &h); evas_object_geometry_get(gcc->o_box, NULL, NULL, &w, &h);
if (gcc->gadcon->edje.o_parent)
evas_object_geometry_get(gcc->gadcon->edje.o_parent, NULL, NULL, &mw, &mh);
else
mw = w, mh = h;
/* /*
if (gcc->resizable) if (gcc->resizable)
{ {
@ -1748,7 +1752,7 @@ _e_gadcon_moveresize_handle(E_Gadcon_Client *gcc)
1, 1, /* expand */ 1, 1, /* expand */
0.5, 0.5, /* align */ 0.5, 0.5, /* align */
w, h, /* min */ w, h, /* min */
w, h /* max */ mw, mh /* max */
); );
} }