Added some _very_ rough code for the burn list. Ewl needs some work here in a couple areas, so off to do that

This commit is contained in:
Jaime Thomas
2008-06-17 04:06:21 +00:00
parent 2249a53666
commit 853d42f6de
6 changed files with 51 additions and 26 deletions

View File

@@ -142,18 +142,23 @@ static Ewl_Widget
{
Ewl_Widget *box, *filelist;
Ecdb_Burn_Project *proj;
const char *dnd_types[] = {"text/uri-list", NULL};
proj = ecdb_burn_project_new();
box = ewl_vbox_new();
ewl_widget_data_set(box, "proj_data", proj);
ewl_callback_append(box, EWL_CALLBACK_DESTROY,
ewl_callback_prepend(box, EWL_CALLBACK_DESTROY,
_destroy_data_page_cb, proj);
ewl_widget_show(box);
filelist = ewl_filelist_new();
ewl_filelist_multiselect_set(EWL_FILELIST(filelist), TRUE);
ewl_dnd_accepted_types_set(filelist, dnd_types);
ewl_callback_append(filelist, EWL_CALLBACK_DND_DATA_RECEIVED,
ecdb_filelist_dnd_dropped_cb, NULL);
ewl_container_child_append(EWL_CONTAINER(box), filelist);
ewl_widget_data_set(filelist, "source", proj->files);
ewl_widget_show(filelist);
return box;