2015-08-11 01:00:03 -07:00
|
|
|
/* Setup if user wants Tasks? */
|
2012-11-30 06:38:34 -08:00
|
|
|
#include "e_wizard.h"
|
2018-05-27 06:51:15 -07:00
|
|
|
#include "e_wizard_api.h"
|
2012-11-26 03:58:04 -08:00
|
|
|
|
2019-07-30 03:46:10 -07:00
|
|
|
static Eina_Bool do_tasks = 0;
|
2012-11-30 02:46:48 -08:00
|
|
|
/*
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2015-03-18 15:09:09 -07:00
|
|
|
wizard_page_init(E_Wizard_Page *pg EINA_UNUSED, Eina_Bool *need_xdg_desktops EINA_UNUSED, Eina_Bool *need_xdg_icons EINA_UNUSED)
|
2012-11-26 03:58:04 -08:00
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2015-03-18 15:09:09 -07:00
|
|
|
wizard_page_shutdown(E_Wizard_Page *pg EINA_UNUSED)
|
2012-11-26 03:58:04 -08:00
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
2012-11-30 02:46:48 -08:00
|
|
|
*/
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2016-03-11 14:14:17 -08:00
|
|
|
wizard_page_show(E_Wizard_Page *pg EINA_UNUSED)
|
2012-11-26 03:58:04 -08:00
|
|
|
{
|
|
|
|
Evas_Object *o, *of, *ob;
|
|
|
|
|
2018-05-27 06:51:15 -07:00
|
|
|
api->wizard_title_set(_("Taskbar"));
|
2012-11-26 03:58:04 -08:00
|
|
|
|
2016-03-11 14:14:17 -08:00
|
|
|
of = elm_frame_add(e_comp->elm);
|
|
|
|
elm_object_text_set(of, _("Information"));
|
2012-11-26 03:58:04 -08:00
|
|
|
|
2016-03-11 14:14:17 -08:00
|
|
|
o = elm_box_add(of);
|
|
|
|
elm_object_content_set(of, o);
|
|
|
|
|
|
|
|
ob = elm_label_add(o);
|
2016-03-16 09:21:26 -07:00
|
|
|
elm_object_style_set(ob, "default/left");
|
2016-03-11 14:14:17 -08:00
|
|
|
E_ALIGN(ob, 0, 0.5);
|
|
|
|
evas_object_show(ob);
|
|
|
|
elm_box_pack_end(o, ob);
|
|
|
|
elm_object_text_set(ob,
|
2017-08-21 07:16:30 -07:00
|
|
|
_("A taskbar can be added to<ps/>"
|
2019-07-30 03:46:10 -07:00
|
|
|
"show open windows and applications.<ps/>"
|
|
|
|
"The IBar launcher already can do this,<ps/>"
|
|
|
|
"so this is in addition to that."
|
2012-11-26 03:58:04 -08:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2016-03-11 14:14:17 -08:00
|
|
|
ob = elm_check_add(o);
|
|
|
|
E_ALIGN(ob, 0, 0.5);
|
|
|
|
evas_object_show(ob);
|
|
|
|
elm_box_pack_end(o, ob);
|
|
|
|
elm_object_text_set(ob, _("Enable Taskbar"));
|
|
|
|
elm_check_state_pointer_set(ob, &do_tasks);
|
2012-11-26 03:58:04 -08:00
|
|
|
|
|
|
|
evas_object_show(of);
|
|
|
|
|
2018-05-27 06:51:15 -07:00
|
|
|
api->wizard_page_show(of);
|
2012-11-26 03:58:04 -08:00
|
|
|
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
|
|
|
|
}
|
2012-11-30 02:46:48 -08:00
|
|
|
/*
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2015-03-18 15:09:09 -07:00
|
|
|
wizard_page_hide(E_Wizard_Page *pg EINA_UNUSED)
|
2012-11-26 03:58:04 -08:00
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
2012-11-30 02:46:48 -08:00
|
|
|
*/
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2015-03-18 15:09:09 -07:00
|
|
|
wizard_page_apply(E_Wizard_Page *pg EINA_UNUSED)
|
2012-11-26 03:58:04 -08:00
|
|
|
{
|
|
|
|
E_Config_Module *em;
|
|
|
|
Eina_List *l;
|
|
|
|
|
|
|
|
if (do_tasks) return 1;
|
|
|
|
|
|
|
|
EINA_LIST_FOREACH(e_config->modules, l, em)
|
|
|
|
{
|
|
|
|
if (!em->name) continue;
|
|
|
|
if (strcmp(em->name, "tasks")) continue;
|
|
|
|
e_config->modules = eina_list_remove_list(e_config->modules, l);
|
|
|
|
eina_stringshare_del(em->name);
|
|
|
|
free(em);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|