forked from enlightenment/enlightenment
Add UNUSED where needed.
Remove whitespace. Fix formatting, etc, etc. SVN revision: 51413
This commit is contained in:
parent
4c42c4f167
commit
aaf6cebcb6
|
@ -1,18 +1,9 @@
|
|||
#include "e.h"
|
||||
#include "e_mod_main.h"
|
||||
|
||||
/***************************************************************************/
|
||||
/**/
|
||||
/* actual module specifics */
|
||||
|
||||
static E_Module *conf_module = NULL;
|
||||
|
||||
/**/
|
||||
/***************************************************************************/
|
||||
|
||||
/***************************************************************************/
|
||||
/**/
|
||||
|
||||
/*
|
||||
* These are the currently planned wizard pages:
|
||||
*
|
||||
|
@ -39,11 +30,6 @@ static E_Module *conf_module = NULL;
|
|||
* with pointer focus and ibar icons/desktop makes no sense.
|
||||
*/
|
||||
|
||||
/**/
|
||||
/***************************************************************************/
|
||||
|
||||
/***************************************************************************/
|
||||
/**/
|
||||
/* module setup */
|
||||
EAPI E_Module_Api e_modapi =
|
||||
{
|
||||
|
@ -51,8 +37,8 @@ EAPI E_Module_Api e_modapi =
|
|||
"Wizard"
|
||||
};
|
||||
|
||||
|
||||
static int _cb_sort_files(char *f1, char *f2)
|
||||
static int
|
||||
_cb_sort_files(char *f1, char *f2)
|
||||
{
|
||||
return strcmp(f1, f2);
|
||||
}
|
||||
|
@ -99,7 +85,7 @@ e_modapi_init(E_Module *m)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
e_modapi_shutdown(E_Module *m)
|
||||
e_modapi_shutdown(E_Module *m __UNUSED__)
|
||||
{
|
||||
e_wizard_shutdown();
|
||||
conf_module = NULL;
|
||||
|
@ -110,7 +96,7 @@ e_modapi_shutdown(E_Module *m)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
e_modapi_save(E_Module *m)
|
||||
e_modapi_save(E_Module *m __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -148,12 +148,12 @@ e_wizard_next(void)
|
|||
EAPI void
|
||||
e_wizard_page_show(Evas_Object *obj)
|
||||
{
|
||||
Evas_Coord minw, minh;
|
||||
|
||||
if (o_content) evas_object_del(o_content);
|
||||
o_content = obj;
|
||||
if (obj)
|
||||
{
|
||||
Evas_Coord minw, minh;
|
||||
|
||||
e_widget_size_min_get(obj, &minw, &minh);
|
||||
edje_extern_object_min_size_set(obj, minw, minh);
|
||||
edje_object_part_swallow(o_bg, "e.swallow.content", obj);
|
||||
|
@ -308,7 +308,7 @@ _e_wizard_extra_new(E_Zone *zone)
|
|||
}
|
||||
|
||||
static void
|
||||
_e_wizard_cb_key_down(void *data, Evas *e, Evas_Object *obj, void *event)
|
||||
_e_wizard_cb_key_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event)
|
||||
{
|
||||
Evas_Event_Key_Down *ev;
|
||||
|
||||
|
@ -333,7 +333,7 @@ _e_wizard_cb_key_down(void *data, Evas *e, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_e_wizard_cb_next(void *data, Evas_Object *obj, const char *emission, const char *source)
|
||||
_e_wizard_cb_next(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
||||
{
|
||||
e_wizard_next();
|
||||
}
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
#include "e_mod_main.h"
|
||||
|
||||
EAPI int
|
||||
wizard_page_init(E_Wizard_Page *pg)
|
||||
wizard_page_init(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_next_page(__UNUSED__ void *data)
|
||||
_next_page(void *data __UNUSED__)
|
||||
{
|
||||
e_wizard_button_next_enable_set(1);
|
||||
e_wizard_next();
|
||||
|
@ -24,7 +24,7 @@ _next_page(__UNUSED__ void *data)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg)
|
||||
wizard_page_show(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
e_wizard_title_set(_("Enlightenment"));
|
||||
e_wizard_button_next_enable_set(0);
|
||||
|
@ -33,13 +33,13 @@ wizard_page_show(E_Wizard_Page *pg)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_hide(E_Wizard_Page *pg)
|
||||
wizard_page_hide(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ _basic_lang_list_sort(const void *data1, const void *data2)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_init(E_Wizard_Page *pg)
|
||||
wizard_page_init(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
FILE *output;
|
||||
|
||||
|
@ -122,7 +122,7 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
// FIXME: free blang_list
|
||||
return 1;
|
||||
|
@ -185,7 +185,7 @@ wizard_page_hide(E_Wizard_Page *pg)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
// do this again as we want it to apply to the new profile
|
||||
eina_stringshare_del(e_config->language);
|
||||
|
|
|
@ -6,7 +6,7 @@ static const char *profile = NULL;
|
|||
static Evas_Object *textblock = NULL;
|
||||
|
||||
static void
|
||||
_profile_change(void *data, Evas_Object *obj)
|
||||
_profile_change(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
const char *dir;
|
||||
|
@ -32,13 +32,13 @@ _profile_change(void *data, Evas_Object *obj)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_init(E_Wizard_Page *pg)
|
||||
wizard_page_init(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ wizard_page_hide(E_Wizard_Page *pg)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
// no need. done in page_070's wizard_page_show()
|
||||
return 1;
|
||||
|
|
|
@ -25,7 +25,7 @@ check_menu_dir(const char *dir)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_init(E_Wizard_Page *pg)
|
||||
wizard_page_init(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
const char *dirs[] =
|
||||
|
@ -61,7 +61,7 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
// FIXME: free menus
|
||||
return 1;
|
||||
|
@ -194,7 +194,7 @@ wizard_page_hide(E_Wizard_Page *pg)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
if ((xdg_sel) && (!strcmp("/etc/xdg/menus/applications.menu", xdg_sel)))
|
||||
{
|
||||
|
@ -203,6 +203,5 @@ wizard_page_apply(E_Wizard_Page *pg)
|
|||
}
|
||||
e_config->default_system_menu = eina_stringshare_ref(xdg_sel);
|
||||
efreet_menu_file_set(e_config->default_system_menu);
|
||||
// FIXME: no normal config dialog to change this!
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ _app_write(App *a)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_init(E_Wizard_Page *pg)
|
||||
wizard_page_init(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
Eina_List *desks = NULL;
|
||||
Efreet_Desktop *desk;
|
||||
|
@ -178,10 +178,11 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
return 1;
|
||||
}
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg)
|
||||
{
|
||||
|
@ -255,7 +256,7 @@ wizard_page_hide(E_Wizard_Page *pg)
|
|||
return 1;
|
||||
}
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
// FIXME: write ~/.e/e/applications/bar/default/.order
|
||||
// which should contain whatever apps the user wants in their bar by
|
||||
|
|
|
@ -15,7 +15,7 @@ _cb_sort_desks(Efreet_Desktop *d1, Efreet_Desktop *d2)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_init(E_Wizard_Page *pg)
|
||||
wizard_page_init(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
Eina_List *desks = NULL;
|
||||
Efreet_Desktop *desk;
|
||||
|
@ -38,13 +38,15 @@ wizard_page_init(E_Wizard_Page *pg)
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg)
|
||||
wizard_page_show(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
Evas_Object *o, *of, *ob, *li, *ck;
|
||||
Evas_Coord mw, mh;
|
||||
|
@ -93,14 +95,16 @@ wizard_page_show(E_Wizard_Page *pg)
|
|||
|
||||
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)
|
||||
wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
Efreet_Desktop *desk;
|
||||
Eina_List *l;
|
||||
|
|
|
@ -2,17 +2,19 @@
|
|||
#include "e_mod_main.h"
|
||||
|
||||
EAPI int
|
||||
wizard_page_init(E_Wizard_Page *pg)
|
||||
wizard_page_init(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_shutdown(E_Wizard_Page *pg)
|
||||
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg)
|
||||
wizard_page_show(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
|
||||
|
@ -33,7 +35,7 @@ wizard_page_hide(E_Wizard_Page *pg)
|
|||
return 1;
|
||||
}
|
||||
EAPI int
|
||||
wizard_page_apply(E_Wizard_Page *pg)
|
||||
wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
// setup ~/Desktop and ~/.e/e/fileman/favorites and
|
||||
|
|
Loading…
Reference in New Issue