forked from enlightenment/enlightenment
Fix some formatting & remove whitespace.
SVN revision: 43985
This commit is contained in:
parent
56197c776c
commit
3598e6ca4a
|
@ -11,11 +11,13 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
_next_page(void *data)
|
||||
{
|
||||
|
@ -23,6 +25,7 @@ _next_page(void *data)
|
|||
e_wizard_next();
|
||||
return 0;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg)
|
||||
{
|
||||
|
@ -31,11 +34,13 @@ wizard_page_show(E_Wizard_Page *pg)
|
|||
ecore_timer_add(2.0, _next_page, NULL);
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_hide(E_Wizard_Page *pg)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
{
|
||||
|
|
|
@ -93,9 +93,8 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
(locale_parts, E_INTL_LOC_LANG | E_INTL_LOC_REGION);
|
||||
if (basic_language)
|
||||
{
|
||||
int i;
|
||||
int i = 0;
|
||||
|
||||
i = 0;
|
||||
while (basic_language_predefined_pairs[i].locale_key)
|
||||
{
|
||||
/* if basic language is supported by E and System*/
|
||||
|
@ -124,12 +123,14 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
{
|
||||
// FIXME: free blang_list
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg)
|
||||
{
|
||||
|
@ -173,6 +174,7 @@ wizard_page_show(E_Wizard_Page *pg)
|
|||
pg->data = of;
|
||||
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_hide(E_Wizard_Page *pg)
|
||||
{
|
||||
|
@ -184,6 +186,7 @@ wizard_page_hide(E_Wizard_Page *pg)
|
|||
e_wizard_labels_update();
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
{
|
||||
|
|
|
@ -39,11 +39,13 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg)
|
||||
{
|
||||
|
@ -132,6 +134,7 @@ wizard_page_show(E_Wizard_Page *pg)
|
|||
e_wizard_button_next_enable_set(0);
|
||||
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_hide(E_Wizard_Page *pg)
|
||||
{
|
||||
|
@ -140,7 +143,8 @@ wizard_page_hide(E_Wizard_Page *pg)
|
|||
if (e_config_profile_get())
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
if (e_user_dir_snprintf(buf, sizeof(buf), "config/%s", e_config_profile_get()) >= sizeof(buf))
|
||||
if (e_user_dir_snprintf(buf, sizeof(buf), "config/%s",
|
||||
e_config_profile_get()) >= sizeof(buf))
|
||||
return 1;
|
||||
ecore_file_recursive_rm(buf);
|
||||
}
|
||||
|
@ -148,6 +152,7 @@ wizard_page_hide(E_Wizard_Page *pg)
|
|||
e_config_profile_set(profile);
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
{
|
||||
|
|
|
@ -47,7 +47,8 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
};
|
||||
int i, newdir;
|
||||
|
||||
for (i = 0; dirs[i]; i++) check_menu_dir(dirs[i]);
|
||||
for (i = 0; dirs[i]; i++)
|
||||
check_menu_dir(dirs[i]);
|
||||
newdir = 1;
|
||||
snprintf(buf, sizeof(buf), "%s/etc/xdg", e_prefix_get());
|
||||
for (i = 0; dirs[i]; i++)
|
||||
|
@ -61,19 +62,20 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
if (newdir) check_menu_dir(buf);
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
{
|
||||
// FIXME: free menus
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg)
|
||||
{
|
||||
Evas_Object *o, *of, *ob;
|
||||
char *file;
|
||||
int sel = -1;
|
||||
int i = 0;
|
||||
int sel = -1, i = 0;
|
||||
|
||||
o = e_widget_list_add(pg->evas, 1, 0);
|
||||
e_wizard_title_set(_("Menus"));
|
||||
|
@ -94,9 +96,7 @@ wizard_page_show(E_Wizard_Page *pg)
|
|||
"for more details on<br>"
|
||||
"how to get your<br>"
|
||||
"application menus<br>"
|
||||
"working."
|
||||
)
|
||||
);
|
||||
"working."));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5);
|
||||
evas_object_show(ob);
|
||||
|
@ -188,12 +188,14 @@ wizard_page_show(E_Wizard_Page *pg)
|
|||
pg->data = of;
|
||||
return 1; /* 1 == show ui, and wait for user, 0 == just continue */
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_hide(E_Wizard_Page *pg)
|
||||
{
|
||||
evas_object_del(pg->data);
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue