blob: 4727c2078fdb224abbb6b5c7993870ed3f64c390 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/* Splash Screen */
#include "e_wizard.h"
static Ecore_Timer *_next_timer = NULL;
/*
EAPI int
wizard_page_init(E_Wizard_Page *pg __UNUSED__, Eina_Bool *need_xdg_desktops __UNUSED__, Eina_Bool *need_xdg_icons __UNUSED__)
{
return 1;
}
EAPI int
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
{
return 1;
}
*/
static Eina_Bool
_next_page(void *data __UNUSED__)
{
_next_timer = NULL;
e_wizard_button_next_enable_set(1);
e_wizard_next();
return ECORE_CALLBACK_CANCEL;
}
EAPI int
wizard_page_show(E_Wizard_Page *pg __UNUSED__)
{
Evas_Object *o;
e_wizard_title_set(_("Enlightenment"));
e_wizard_button_next_enable_set(0);
o = edje_object_add(pg->evas);
e_theme_edje_object_set(o, "base/theme/wizard", "e/wizard/firstpage");
e_wizard_page_show(o);
/* advance in 1 sec */
if (!_next_timer)
_next_timer = ecore_timer_add(1.0, _next_page, NULL);
return 1;
}
EAPI int
wizard_page_hide(E_Wizard_Page *pg __UNUSED__)
{
if (_next_timer) ecore_timer_del(_next_timer);
_next_timer = NULL;
return 1;
}
/*
EAPI int
wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
{
return 1;
}
*/
|