discomfitor pushed a commit to branch master.
commit bf3ff4a5d1fa8f341f76353a550d4187793e9ec4
Author: Mike Blumenkrantz <[email protected]>
Date: Tue Aug 13 11:28:02 2013 +0100
gadman checks aspect hints during size hint change callback
---
src/modules/gadman/e_mod_gadman.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/modules/gadman/e_mod_gadman.c
b/src/modules/gadman/e_mod_gadman.c
index bf1425f..c1c4e07 100644
--- a/src/modules/gadman/e_mod_gadman.c
+++ b/src/modules/gadman/e_mod_gadman.c
@@ -241,8 +241,17 @@ _gadman_gadget_size_hints_cb(void *data, Evas *e
EINA_UNUSED, Evas_Object *obj,
int w, h;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
- w = MAX(w, gcc->min.w);
- h = MAX(h, gcc->min.h);
+ /* size hints change for either min or aspect */
+ if (gcc->min.w || gcc->min.h)
+ {
+ w = MAX(w, gcc->min.w);
+ h = MAX(h, gcc->min.h);
+ }
+ if (gcc->aspect.w && gcc->aspect.h)
+ {
+ w = MAX(w, gcc->aspect.w);
+ h = MAX(h, gcc->aspect.h);
+ }
evas_object_resize(gcc->o_frame, w, h);
_save_widget_position(gcc);
}
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk