Enlightenment CVS committal Author : lordchaos Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_iconbox.c ewl_iconbox.h Log Message: Context add =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- ewl_iconbox.c 15 Oct 2005 09:39:39 -0000 1.32 +++ ewl_iconbox.c 16 Oct 2005 23:06:21 -0000 1.33 @@ -187,6 +187,10 @@ ewl_callback_append(ib->ewl_iconbox_context_menu_item, EWL_CALLBACK_MOUSE_DOWN, ewl_iconbox_expansion_cb, ib); ewl_widget_show(ib->ewl_iconbox_context_menu_item); + ib->ewl_iconbox_context_menu_item = ewl_menu_separator_new(); + ewl_container_child_append(EWL_CONTAINER(ib->ewl_iconbox_context_menu), ib->ewl_iconbox_context_menu_item); + ewl_widget_show(ib->ewl_iconbox_context_menu_item); + ewl_widget_show(ib->ewl_iconbox_view_menu); @@ -280,6 +284,26 @@ } + + + +void ewl_iconbox_context_menu_item_add(Ewl_IconBox* ib, Ewl_Widget* item) { + ewl_container_child_append(EWL_CONTAINER(ib->ewl_iconbox_context_menu), item); +} + +Ecore_List* ewl_iconbox_get_selection(Ewl_IconBox* ib) { + Ewl_IconBox_Icon* list_item; + Ecore_List* selected = ecore_list_new(); + + ecore_list_goto_first(ib->ewl_iconbox_icon_list); + while((list_item = (Ewl_IconBox_Icon*)ecore_list_next(ib->ewl_iconbox_icon_list)) != NULL) { + if (list_item->selected) ecore_list_append(selected, list_item); + } + + return selected; +} + + void ewl_iconbox_background_set(Ewl_IconBox* ib, char* file) { /*Add a background image*/ =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ewl_iconbox.h 15 Oct 2005 09:39:39 -0000 1.11 +++ ewl_iconbox.h 16 Oct 2005 23:06:21 -0000 1.12 @@ -113,6 +113,8 @@ void ewl_iconbox_clear(Ewl_IconBox* iconbox); void ewl_iconbox_icon_image_set(Ewl_IconBox_Icon* icon, char* filename); void ewl_iconbox_background_set(Ewl_IconBox* ib, char* file); +void ewl_iconbox_context_menu_item_add(Ewl_IconBox* ib, Ewl_Widget* item); +Ecore_List* ewl_iconbox_get_selection(Ewl_IconBox* ib); /* Internal callbacks */ ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs