On Fri, Nov 23, 2012 at 11:27 AM, Carsten Haitzler <[email protected]>wrote:

> On Fri, 23 Nov 2012 11:22:55 +0900 Daniel Juyung Seo <[email protected]
> >
> said:
>
> > On Fri, Nov 23, 2012 at 8:59 AM, Enlightenment SVN <
> > [email protected]> wrote:
> >
> > > Log:
> > > modify index test to test autohide disable before items added and..
> > >   make index packed into a table cell that occupies only part of the
> > >   screen.
> > >
> > >
> > >
> > > Author:       raster
> > > Date:         2012-11-22 15:59:10 -0800 (Thu, 22 Nov 2012)
> > > New Revision: 79551
> > > Trac:         http://trac.enlightenment.org/e/changeset/79551
> > >
> > > Modified:
> > >   trunk/elementary/src/bin/test_index.c
> > >
> > > Modified: trunk/elementary/src/bin/test_index.c
> > > ===================================================================
> > > --- trunk/elementary/src/bin/test_index.c       2012-11-22 22:18:34 UTC
> > > (rev 79550)
> > > +++ trunk/elementary/src/bin/test_index.c       2012-11-22 23:59:10 UTC
> > > (rev 79551)
> > > @@ -162,7 +162,7 @@
> > >  void
> > >  test_index(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void
> > > *event_info __UNUSED__)
> > >  {
> > > -   Evas_Object *win, *bxx, *gl, *id, *bt;
> > > +   Evas_Object *win, *bxx, *gl, *id, *bt, *tb;
> > >     Elm_Object_Item *glit;
> > >     int i, j;
> > >     api_data *api = calloc(1, sizeof(api_data));
> > > @@ -176,23 +176,32 @@
> > >     elm_win_resize_object_add(win, bxx);
> > >     evas_object_show(bxx);
> > >
> > > +   tb = elm_table_add(win);
> > > +   evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND,
> > > EVAS_HINT_EXPAND);
> > > +   evas_object_size_hint_align_set(tb, EVAS_HINT_FILL,
> EVAS_HINT_FILL);
> > > +   evas_object_show(tb);
> > > +
> > >     gl = elm_genlist_add(win);
> > >     evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND,
> > > EVAS_HINT_EXPAND);
> > >     evas_object_size_hint_align_set(gl, EVAS_HINT_FILL,
> EVAS_HINT_FILL);
> > > +   elm_table_pack(tb, gl, 0, 0, 1, 1);
> > >     evas_object_show(gl);
> > >
> > >     api->dt.id = id = elm_index_add(win);
> > >     evas_object_size_hint_weight_set(id, EVAS_HINT_EXPAND,
> > > EVAS_HINT_EXPAND);
> > > -   elm_win_resize_object_add(win, id);
> > > +   evas_object_size_hint_align_set(id, EVAS_HINT_FILL,
> EVAS_HINT_FILL);
> > > +   elm_index_autohide_disabled_set(id, EINA_FALSE);
> > > +   elm_table_pack(tb, id, 0, 0, 1, 1);
> > >
> > >     bt = elm_button_add(win);
> > >     elm_object_text_set(bt, "Next API function");
> > >     evas_object_smart_callback_add(bt, "clicked", _api_bt_clicked,
> (void
> > > *) api);
> > >     elm_box_pack_end(bxx, bt);
> > >     elm_object_disabled_set(bt, api->state == API_STATE_LAST);
> > >
> >
> > Hello
> >
> >
> > > +   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND,
> > > EVAS_HINT_EXPAND);
> > >
> >
> > Why this line was added? Button consumes the half of the window.
> > I think it's added by mistake, I removed it.
>
> it was not a mistake. i did it so the button area would use 1/2 the window
> height so you could easily SEE the index being clipped.
>
>
OK, it can be one of the many test cases, but as the first index test it
doesn't look good to me because developers will refer that code.
I will add another test case to show how to clip the index then.
Thanks.


> > Daniel Juyung Seo (SeoZ)
> >
> >
> > >     evas_object_show(bt);
> > >
> > > -   elm_box_pack_end(bxx, gl);
> > > +   elm_box_pack_end(bxx, tb);
> > >
> > >     evas_object_show(id);
> > >
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------------
> > > Monitor your physical, virtual and cloud infrastructure from a single
> > > web console. Get in-depth insight into apps, servers, databases,
> vmware,
> > > SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> > > Pricing starts from $795 for 25 servers or applications!
> > > http://p.sf.net/sfu/zoho_dev2dev_nov
> > > _______________________________________________
> > > enlightenment-svn mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
> > >
> >
> ------------------------------------------------------------------------------
> > Monitor your physical, virtual and cloud infrastructure from a single
> > web console. Get in-depth insight into apps, servers, databases, vmware,
> > SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> > Pricing starts from $795 for 25 servers or applications!
> > http://p.sf.net/sfu/zoho_dev2dev_nov
> > _______________________________________________
> > 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]
>
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to