2012-11-09 19:18:31 -08:00
|
|
|
/* Ask about updates checking */
|
2012-11-30 06:38:34 -08:00
|
|
|
#include "e_wizard.h"
|
2012-02-11 02:45:32 -08:00
|
|
|
|
2016-03-11 14:14:17 -08:00
|
|
|
static Eina_Bool do_up = 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_init(E_Wizard_Page *pg EINA_UNUSED, Eina_Bool *need_xdg_desktops EINA_UNUSED, Eina_Bool *need_xdg_icons EINA_UNUSED)
|
2012-02-11 02:45:32 -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-02-11 02:45:32 -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-02-11 02:45:32 -08:00
|
|
|
{
|
|
|
|
Evas_Object *o, *of, *ob;
|
2012-06-28 06:12:13 -07:00
|
|
|
|
2012-02-11 02:45:32 -08:00
|
|
|
e_wizard_title_set(_("Updates"));
|
2012-06-28 06:12:13 -07:00
|
|
|
|
2016-03-11 14:14:17 -08:00
|
|
|
of = elm_frame_add(e_comp->elm);
|
|
|
|
elm_object_text_set(of, _("Check for available updates"));
|
2012-06-28 06:12:13 -07:00
|
|
|
|
2016-03-11 14:14:17 -08:00
|
|
|
o = elm_box_add(of);
|
|
|
|
elm_object_content_set(of, o);
|
|
|
|
|
|
|
|
ob = elm_label_add(of);
|
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,
|
2012-06-28 06:12:13 -07:00
|
|
|
_("Enlightenment can check for new<br>"
|
2012-12-09 11:50:07 -08:00
|
|
|
"versions, updates, security and<br>"
|
2012-06-28 06:12:13 -07:00
|
|
|
"bugfixes, as well as available add-ons.<br>"
|
|
|
|
"<br>"
|
2012-12-09 11:50:07 -08:00
|
|
|
"This is very useful, because it lets<br>"
|
2012-06-28 06:12:13 -07:00
|
|
|
"you know about available bug fixes and<br>"
|
|
|
|
"security fixes when they happen. As a<br>"
|
2013-01-06 08:12:44 -08:00
|
|
|
"result, Enlightenment will connect to<br>"
|
|
|
|
"enlightenment.org and transmit some<br>"
|
|
|
|
"information, much like any web browser<br>"
|
|
|
|
"might do. No personal information such as<br>"
|
|
|
|
"username, password or any personal files<br>"
|
|
|
|
"will be transmitted. If you don't like this,<br>"
|
|
|
|
"please disable this below. It is highly<br>"
|
2012-06-28 06:12:13 -07:00
|
|
|
"advised that you do not disable this as it<br>"
|
|
|
|
"may leave you vulnerable or having to live<br>"
|
|
|
|
"with bugs."
|
|
|
|
)
|
|
|
|
);
|
2016-03-11 14:14:17 -08:00
|
|
|
ob = elm_check_add(o);
|
|
|
|
E_ALIGN(ob, 0, 0.5);
|
|
|
|
evas_object_show(ob);
|
|
|
|
elm_object_text_set(ob, _("Enable update checking"));
|
|
|
|
elm_check_state_pointer_set(ob, &do_up);
|
|
|
|
elm_box_pack_end(o, ob);
|
2012-02-11 02:45:32 -08:00
|
|
|
|
|
|
|
evas_object_show(of);
|
|
|
|
|
2016-03-11 14:14:17 -08:00
|
|
|
e_wizard_page_show(of);
|
2012-02-11 02:45:32 -08:00
|
|
|
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
|
|
|
|
}
|
|
|
|
|
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-02-11 02:45:32 -08:00
|
|
|
{
|
|
|
|
e_config->update.check = do_up;
|
|
|
|
e_config_save_queue();
|
|
|
|
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-02-11 02:45:32 -08:00
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
2012-11-30 02:46:48 -08:00
|
|
|
*/
|