84 lines
2.2 KiB
C
84 lines
2.2 KiB
C
/* Ask about updates checking */
|
|
#include "e_wizard.h"
|
|
#include "e_wizard_api.h"
|
|
|
|
static Eina_Bool do_up = 1;
|
|
/*
|
|
E_API int
|
|
wizard_page_init(E_Wizard_Page *pg EINA_UNUSED, Eina_Bool *need_xdg_desktops EINA_UNUSED, Eina_Bool *need_xdg_icons EINA_UNUSED)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
E_API int
|
|
wizard_page_shutdown(E_Wizard_Page *pg EINA_UNUSED)
|
|
{
|
|
return 1;
|
|
}
|
|
*/
|
|
E_API int
|
|
wizard_page_show(E_Wizard_Page *pg EINA_UNUSED)
|
|
{
|
|
Evas_Object *o, *of, *ob;
|
|
|
|
api->wizard_title_set(_("Updates"));
|
|
|
|
of = elm_frame_add(e_comp->elm);
|
|
elm_object_text_set(of, _("Check for available updates"));
|
|
|
|
o = elm_box_add(of);
|
|
elm_object_content_set(of, o);
|
|
|
|
ob = elm_label_add(of);
|
|
elm_object_style_set(ob, "default/left");
|
|
E_ALIGN(ob, 0, 0.5);
|
|
evas_object_show(ob);
|
|
elm_box_pack_end(o, ob);
|
|
elm_object_text_set(ob,
|
|
_("Enlightenment can check for new<ps/>"
|
|
"versions, updates, security and<ps/>"
|
|
"bugfixes, as well as available add-ons.<ps/>"
|
|
"<ps/>"
|
|
"This is very useful, because it lets<ps/>"
|
|
"you know about available bug fixes and<ps/>"
|
|
"security fixes when they happen. As a<ps/>"
|
|
"result, Enlightenment will connect to<ps/>"
|
|
"enlightenment.org and transmit some<ps/>"
|
|
"information, much like any web browser<ps/>"
|
|
"might do. No personal information such as<ps/>"
|
|
"username, password or any personal files<ps/>"
|
|
"will be transmitted. If you don't like this,<ps/>"
|
|
"please disable this below. It is highly<ps/>"
|
|
"advised that you do not disable this as it<ps/>"
|
|
"may leave you vulnerable or having to live<ps/>"
|
|
"with bugs."
|
|
)
|
|
);
|
|
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);
|
|
|
|
evas_object_show(of);
|
|
|
|
api->wizard_page_show(of);
|
|
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
|
|
}
|
|
|
|
E_API int
|
|
wizard_page_hide(E_Wizard_Page *pg EINA_UNUSED)
|
|
{
|
|
e_config->update.check = do_up;
|
|
e_config_save_queue();
|
|
return 1;
|
|
}
|
|
/*
|
|
E_API int
|
|
wizard_page_apply(E_Wizard_Page *pg EINA_UNUSED)
|
|
{
|
|
return 1;
|
|
}
|
|
*/
|