discomfitor pushed a commit to branch master.

commit 0bb7ceb97cc520f7ac0ef0622a2626f241c53fb0
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Aug 13 11:02:50 2013 +0100

    ibar now sets min size on init and then sets ASPECT on resize, since this 
is how we get correct sizing without being unable to ensmallen the gadget
---
 src/modules/ibar/e_mod_main.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 5549a53..a517a9b 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -222,6 +222,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, 
const char *style)
    if (!ci->dir) ci->dir = eina_stringshare_add("default");
    b = _ibar_new(gc->evas, inst);
    gcc = e_gadcon_client_new(gc, name, id, style, b->o_outerbox);
+   e_gadcon_client_min_size_set(gcc, 16, 16);
    gcc->data = inst;
 
    inst->gcc = gcc;
@@ -233,9 +234,9 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, 
const char *style)
                         _ibar_inst_cb_enter, _ibar_inst_cb_move,
                         _ibar_inst_cb_leave, _ibar_inst_cb_drop,
                         drop, 3, x, y, w, h);
-   evas_object_event_callback_add(b->o_box, EVAS_CALLBACK_MOVE,
+   evas_object_event_callback_add(b->o_outerbox, EVAS_CALLBACK_MOVE,
                                   _ibar_cb_obj_moveresize, inst);
-   evas_object_event_callback_add(b->o_box, EVAS_CALLBACK_RESIZE,
+   evas_object_event_callback_add(b->o_outerbox, EVAS_CALLBACK_RESIZE,
                                   _ibar_cb_obj_moveresize, inst);
    ibar_config->instances = eina_list_append(ibar_config->instances, inst);
    return gcc;
@@ -631,7 +632,7 @@ _ibar_resize_handle(IBar *b)
                           );
    if (!b->inst->gcc) return;
    e_box_size_min_get(b->o_outerbox, &w, &h);
-   e_gadcon_client_min_size_set(b->inst->gcc, w, h);
+   e_gadcon_client_aspect_set(b->inst->gcc, w, h);
 }
 
 static void

-- 

------------------------------------------------------------------------------
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

Reply via email to