On Tue, 26 Jun 2012 11:15:01 -0300 Gustavo Lima Chaves <[email protected]> said:
> * Ingvaldur Sigurjonsson <[email protected]> [2012-06-25 14:49:06 > +0200]: > > > Hi > > > > Enclosed you find small patches for Elementary's "Flip selector" test and > > example. > > > > Without the patch, the value the flip selector is supposed to show is way > > too narrow, so narrow that you only see two characters of it's value. The > > patches simply add a 'evas_object_size_hint_align_set(fp, EVAS_HINT_FILL, > > EVAS_HINT_FILL);' so the flip-selector widget is resized when it's container > > is resized (box,...). > > > > I assume the flip-selector widget width is supposed to be controlled by > > the longest length (up to some maximum) of one of it's values but I dont > > know how to fix that. Atleast you can see the values with the enclosed > > patches. > > > > Files affected by the patch are: > > - src/bin/test_flipselector.c > > - src/examples/flipselector_example.c > > It worked at the time I ported it to the new class schema. I smell > Raster broke it afterwards. This commit is wrong, I'll check it > myself. eh? broke? when? where? you mean my commit to prevent it segving as it blows the stack with infinite recursion? :) > Regards, > > > > > Regards > > - Ingvaldur > > > Index: src/bin/test_flipselector.c > > =================================================================== > > --- src/bin/test_flipselector.c (revision 72804) > > +++ src/bin/test_flipselector.c (working copy) > > @@ -104,6 +104,7 @@ > > evas_object_show(bx); > > > > fp = elm_flipselector_add(win); > > + evas_object_size_hint_align_set(fp, EVAS_HINT_FILL, EVAS_HINT_FILL); > > evas_object_size_hint_weight_set(fp, EVAS_HINT_EXPAND, > > EVAS_HINT_EXPAND); evas_object_smart_callback_add(fp, "selected", _sel_cb, > > NULL); evas_object_smart_callback_add(fp, "underflowed", _overflow_cb, > > NULL); @@ -118,6 +119,7 @@ > > evas_object_show(fp); > > > > bx2 = elm_box_add(win); > > + evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL); > > evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, > > EVAS_HINT_EXPAND); elm_box_horizontal_set(bx2, EINA_TRUE); > > elm_box_pack_end(bx, bx2); > > @@ -126,6 +128,7 @@ > > fp = elm_flipselector_add(win); > > evas_object_smart_callback_add(fp, "underflowed", _overflow_cb, NULL); > > evas_object_smart_callback_add(fp, "overflowed", _underflow_cb, NULL); > > + evas_object_size_hint_align_set(fp, EVAS_HINT_FILL, EVAS_HINT_FILL); > > evas_object_size_hint_weight_set(fp, EVAS_HINT_EXPAND, > > EVAS_HINT_EXPAND); for (i = 1990; i <= 2099; i++) > > { > > > Index: src/examples/flipselector_example.c > > =================================================================== > > --- src/examples/flipselector_example.c (revision 72804) > > +++ src/examples/flipselector_example.c (working copy) > > @@ -174,6 +174,7 @@ > > > > fp = elm_flipselector_add(win); > > evas_object_size_hint_weight_set(fp, EVAS_HINT_EXPAND, > > EVAS_HINT_EXPAND); > > + evas_object_size_hint_align_set(fp, EVAS_HINT_FILL, EVAS_HINT_FILL); > > evas_object_smart_callback_add(fp, "underflowed", _overflow_cb, NULL); > > evas_object_smart_callback_add(fp, "overflowed", _underflow_cb, NULL); > > for (i = 0; i < sizeof(lbl) / sizeof(lbl[0]); i++) > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > > enlightenment-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > -- > Gustavo Lima Chaves > Computer Engineer @ ProFUSION Embedded Systems > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
