diff options
Diffstat (limited to 'src/modules/wizard/page_050.c')
-rw-r--r-- | src/modules/wizard/page_050.c | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/src/modules/wizard/page_050.c b/src/modules/wizard/page_050.c index 4c0819888c..6dd9da4e8f 100644 --- a/src/modules/wizard/page_050.c +++ b/src/modules/wizard/page_050.c @@ -4,6 +4,8 @@ #include "e.h" #include "e_mod_main.h" +static int desktop_files = 1; + EAPI int wizard_page_init(E_Wizard_Page *pg) { @@ -18,25 +20,23 @@ EAPI int wizard_page_show(E_Wizard_Page *pg) { Evas_Object *o, *of, *ob; - Eina_List *l; - int i, sel = -1; + E_Radio_Group *rg; o = e_widget_list_add(pg->evas, 1, 0); e_wizard_title_set(_("File Manager")); of = e_widget_framelist_add(pg->evas, _("Desktop Files"), 0); - - ob = e_widget_ilist_add(pg->evas, 32 * e_scale, 32 * e_scale, NULL); - e_widget_min_size_set(ob, 140 * e_scale, 140 * e_scale); - - e_widget_ilist_freeze(ob); - e_widget_ilist_go(ob); - e_widget_ilist_thaw(ob); - - if (sel >= 0) e_widget_ilist_selected_set(ob, sel); + + rg = e_widget_radio_group_new(&desktop_files); + ob = e_widget_radio_add(pg->evas, _("No icons on desktop"), 0, rg); e_widget_framelist_object_append(of, ob); - e_widget_list_object_append(o, of, 1, 1, 0.5); + evas_object_show(ob); + ob = e_widget_radio_add(pg->evas, _("Enable desktop icons"), 1, rg); + e_widget_framelist_object_append(of, ob); + evas_object_show(ob); + + e_widget_list_object_append(o, of, 0, 0, 0.5); evas_object_show(ob); evas_object_show(of); @@ -53,5 +53,14 @@ wizard_page_hide(E_Wizard_Page *pg) EAPI int wizard_page_apply(E_Wizard_Page *pg) { + if (!desktop_files) + { + // FIXME: disable fileman + } + else + { + // FIXME: enable fileman + // FIXME: populate ~/Desktop + } return 1; } |