elementary/genlist - Make genlist preview use a tree view.
SVN revision: 61959
This commit is contained in:
parent
6d42ded0e9
commit
05b42aa217
|
@ -60,7 +60,7 @@ WGT_PREVIEW = \
|
|||
toggle:preview-00.png:widget_preview_toggle:150:30 \
|
||||
panel:preview-00.png:widget_preview_panel:150:50 \
|
||||
gengrid:preview-00.png:widget_preview_gengrid:200:160 \
|
||||
genlist:preview-00.png:widget_preview_genlist1:200:160 \
|
||||
genlist:preview-00.png:widget_preview_genlist1:200:200 \
|
||||
genlist:preview-01.png:widget_preview_genlist2:200:160 \
|
||||
genlist:preview-02.png:widget_preview_genlist3:200:160 \
|
||||
genlist:preview-03.png:widget_preview_genlist4:200:160 \
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
|
@ -232,6 +232,8 @@
|
|||
*
|
||||
* @image html img/widget/genlist/preview-00.png
|
||||
* @image latex img/widget/genlist/preview-00.eps
|
||||
* @image html img/genlist.png
|
||||
* @image latex img/genlist.eps
|
||||
* @li @ref Grid
|
||||
* @li @ref Layout
|
||||
*
|
||||
|
|
|
@ -34,6 +34,7 @@ elm_win_resize_object_add(win, genlist);
|
|||
evas_object_show(genlist);
|
||||
|
||||
Elm_Genlist_Item_Class gic;
|
||||
Elm_Genlist_Item *it, *top;
|
||||
gic.item_style = "default";
|
||||
gic.func.label_get = _label_get;
|
||||
gic.func.icon_get = _icon_get;
|
||||
|
@ -42,6 +43,15 @@ gic.func.del = NULL;
|
|||
|
||||
elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
|
||||
elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
|
||||
it = elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
|
||||
top = it;
|
||||
elm_genlist_item_expanded_set(it, EINA_TRUE);
|
||||
elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL);
|
||||
it = elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL);
|
||||
elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL);
|
||||
elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
|
||||
elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
|
||||
|
||||
elm_genlist_item_top_show(top);
|
||||
|
||||
#include "widget_preview_tmpl_foot.c"
|
||||
|
|
|
@ -13726,6 +13726,8 @@ extern "C" {
|
|||
*
|
||||
* @image html img/widget/genlist/preview-00.png
|
||||
* @image latex img/widget/genlist/preview-00.eps
|
||||
* @image html img/genlist.png
|
||||
* @image latex img/genlist.eps
|
||||
*
|
||||
* This widget aims to have more expansive list than the simple list in
|
||||
* Elementary that could have more flexible items and allow many more entries
|
||||
|
|
Loading…
Reference in New Issue