Clean up compile warnings:

* char * -> const char * for stringshare strings
 * char * -> const char * where needed in functions
 * remove unused vars in some places


SVN revision: 20912
devs/princeamd/enlightenment-0.17-elive
stffrdhrn 17 years ago committed by stffrdhrn
parent 7e18dbb3a1
commit 218717c8dc
  1. 18
      src/bin/e_actions.c
  2. 16
      src/bin/e_actions.h
  3. 32
      src/bin/e_apps.c
  4. 40
      src/bin/e_apps.h
  5. 4
      src/bin/e_apps_cache.c
  6. 26
      src/bin/e_apps_cache.h
  7. 2
      src/bin/e_bg.c
  8. 16
      src/bin/e_bindings.c
  9. 38
      src/bin/e_bindings.h
  10. 8
      src/bin/e_border.c
  11. 10
      src/bin/e_border.h
  12. 2
      src/bin/e_color_class.h
  13. 58
      src/bin/e_config.h
  14. 2
      src/bin/e_config_dialog.c
  15. 6
      src/bin/e_config_dialog.h
  16. 2
      src/bin/e_container.h
  17. 2
      src/bin/e_desk.c
  18. 4
      src/bin/e_desk.h
  19. 3
      src/bin/e_desklock.h
  20. 10
      src/bin/e_dialog.c
  21. 8
      src/bin/e_dialog.h
  22. 6
      src/bin/e_error.c
  23. 2
      src/bin/e_exebuf.c
  24. 4
      src/bin/e_exehist.c
  25. 5
      src/bin/e_fileman_mime.c
  26. 2
      src/bin/e_fileman_mime.h
  27. 2
      src/bin/e_font.c
  28. 10
      src/bin/e_font.h
  29. 2
      src/bin/e_gadcon.c
  30. 2
      src/bin/e_gadcon.h
  31. 2
      src/bin/e_gadman.c
  32. 2
      src/bin/e_gadman.h
  33. 1
      src/bin/e_includes.h
  34. 2
      src/bin/e_init.c
  35. 87
      src/bin/e_int_config_keybindings.c
  36. 2
      src/bin/e_int_config_modules.c
  37. 4
      src/bin/e_int_menus.c
  38. 2
      src/bin/e_int_menus.h
  39. 54
      src/bin/e_ipc_codec.c
  40. 18
      src/bin/e_ipc_codec.h
  41. 82
      src/bin/e_ipc_handlers.h
  42. 12
      src/bin/e_menu.h
  43. 13
      src/bin/e_module.c
  44. 10
      src/bin/e_module.h
  45. 10
      src/bin/e_msg.c
  46. 4
      src/bin/e_msg.h
  47. 2
      src/bin/e_path.c
  48. 4
      src/bin/e_path.h
  49. 4
      src/bin/e_pointer.c
  50. 2
      src/bin/e_pointer.h
  51. 2
      src/bin/e_remember.c
  52. 7
      src/bin/e_remember.h
  53. 2
      src/bin/e_shelf.c
  54. 6
      src/bin/e_shelf.h
  55. 2
      src/bin/e_slider.c
  56. 16
      src/bin/e_theme.c
  57. 6
      src/bin/e_theme.h
  58. 1
      src/bin/e_thumb.c
  59. 24
      src/bin/e_utils.c
  60. 18
      src/bin/e_utils.h
  61. 2
      src/bin/e_widget_button.c
  62. 2
      src/bin/e_widget_button.h
  63. 4
      src/bin/e_widget_textblock.c
  64. 4
      src/bin/e_win.c
  65. 4
      src/bin/e_win.h
  66. 2
      src/bin/e_zone.h

@ -10,56 +10,56 @@
if (act) act->func.go = _e_actions_act_##name##_go; \
}
#define ACT_FN_GO(act) \
static void _e_actions_act_##act##_go(E_Object *obj, char *params)
static void _e_actions_act_##act##_go(E_Object *obj, const char *params)
#define ACT_GO_MOUSE(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.go_mouse = _e_actions_act_##name##_go_mouse; \
}
#define ACT_FN_GO_MOUSE(act) \
static void _e_actions_act_##act##_go_mouse(E_Object *obj, char *params, Ecore_X_Event_Mouse_Button_Down *ev)
static void _e_actions_act_##act##_go_mouse(E_Object *obj, const char *params, Ecore_X_Event_Mouse_Button_Down *ev)
#define ACT_GO_WHEEL(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.go_wheel = _e_actions_act_##name##_go_wheel; \
}
#define ACT_FN_GO_WHEEL(act) \
static void _e_actions_act_##act##_go_wheel(E_Object *obj, char *params, Ecore_X_Event_Mouse_Wheel *ev)
static void _e_actions_act_##act##_go_wheel(E_Object *obj, const char *params, Ecore_X_Event_Mouse_Wheel *ev)
#define ACT_GO_SIGNAL(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.go_signal = _e_actions_act_##name##_go_signal; \
}
#define ACT_FN_GO_SIGNAL(act) \
static void _e_actions_act_##act##_go_signal(E_Object *obj, char *params, char *sig, char *src)
static void _e_actions_act_##act##_go_signal(E_Object *obj, const char *params, const char *sig, const char *src)
#define ACT_GO_KEY(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.go_key = _e_actions_act_##name##_go_key; \
}
#define ACT_FN_GO_KEY(act) \
static void _e_actions_act_##act##_go_key(E_Object *obj, char *params, Ecore_X_Event_Key_Down *ev)
static void _e_actions_act_##act##_go_key(E_Object *obj, const char *params, Ecore_X_Event_Key_Down *ev)
#define ACT_END(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.end = _e_actions_act_##name##_end; \
}
#define ACT_FN_END(act) \
static void _e_actions_act_##act##_end(E_Object *obj, char *params)
static void _e_actions_act_##act##_end(E_Object *obj, const char *params)
#define ACT_END_MOUSE(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.end_mouse = _e_actions_act_##name##_end_mouse; \
}
#define ACT_FN_END_MOUSE(act) \
static void _e_actions_act_##act##_end_mouse(E_Object *obj, char *params, Ecore_X_Event_Mouse_Button_Up *ev)
static void _e_actions_act_##act##_end_mouse(E_Object *obj, const char *params, Ecore_X_Event_Mouse_Button_Up *ev)
#define ACT_END_KEY(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.end_key = _e_actions_act_##name##_end_key; \
}
#define ACT_FN_END_KEY(act) \
static void _e_actions_act_##act##_end_key(E_Object *obj, char *params, Ecore_X_Event_Key_Up *ev)
static void _e_actions_act_##act##_end_key(E_Object *obj, const char *params, Ecore_X_Event_Key_Up *ev)
/* local subsystem functions */
static void _e_action_free(E_Action *act);
@ -963,7 +963,7 @@ _e_actions_cb_menu_end(void *data, E_Menu *m)
e_object_del(E_OBJECT(m));
}
static E_Menu *
_e_actions_menu_find(char *name)
_e_actions_menu_find(const char *name)
{
if (!strcmp(name, "main")) return e_int_menus_main_new();
else if (!strcmp(name, "favorites")) return e_int_menus_favorite_apps_new();

@ -17,14 +17,14 @@ struct _E_Action
const char *name;
struct {
void (*go) (E_Object *obj, char *params);
void (*go_mouse) (E_Object *obj, char *params, Ecore_X_Event_Mouse_Button_Down *ev);
void (*go_wheel) (E_Object *obj, char *params, Ecore_X_Event_Mouse_Wheel *ev);
void (*go_key) (E_Object *obj, char *params, Ecore_X_Event_Key_Down *ev);
void (*go_signal) (E_Object *obj, char *params, char *sig, char *src);
void (*end) (E_Object *obj, char *params);
void (*end_mouse) (E_Object *obj, char *params, Ecore_X_Event_Mouse_Button_Up *ev);
void (*end_key) (E_Object *obj, char *params, Ecore_X_Event_Key_Up *ev);
void (*go) (E_Object *obj, const char *params);
void (*go_mouse) (E_Object *obj, const char *params, Ecore_X_Event_Mouse_Button_Down *ev);
void (*go_wheel) (E_Object *obj, const char *params, Ecore_X_Event_Mouse_Wheel *ev);
void (*go_key) (E_Object *obj, const char *params, Ecore_X_Event_Key_Down *ev);
void (*go_signal) (E_Object *obj, const char *params, const char *sig, const char *src);
void (*end) (E_Object *obj, const char *params);
void (*end_mouse) (E_Object *obj, const char *params, Ecore_X_Event_Mouse_Button_Up *ev);
void (*end_key) (E_Object *obj, const char *params, Ecore_X_Event_Key_Up *ev);
} func;
};

@ -55,8 +55,8 @@ static int _e_app_cb_event_border_add(void *data, int type, void *event);
static int _e_app_cb_expire_timer (void *data);
static void _e_app_cache_copy (E_App_Cache *ac, E_App *a);
static int _e_app_cb_scan_cache_timer(void *data);
static E_App *_e_app_cache_new (E_App_Cache *ac, char *path, int scan_subdirs);
static int _e_app_exe_valid_get (char *exe);
static E_App *_e_app_cache_new (E_App_Cache *ac, const char *path, int scan_subdirs);
static int _e_app_exe_valid_get (const char *exe);
/* local subsystem globals */
static Evas_Hash *_e_apps = NULL;
@ -68,8 +68,8 @@ static Ecore_Event_Handler *_e_apps_exit_handler = NULL;
static Ecore_Event_Handler *_e_apps_border_add_handler = NULL;
static Evas_List *_e_apps_repositories = NULL;
static E_App *_e_apps_all = NULL;
static char *_e_apps_path_all = NULL;
static char *_e_apps_path_trash = NULL;
static const char *_e_apps_path_all = NULL;
static const char *_e_apps_path_trash = NULL;
static Evas_List *_e_apps_start_pending = NULL;
#define EAP_MIN_WIDTH 8
@ -235,10 +235,10 @@ e_app_new(const char *path, int scan_subdirs)
return a;
}
ac = e_app_cache_load((char *)path);
ac = e_app_cache_load(path);
if (ac)
{
a = _e_app_cache_new(ac, (char *)path, scan_subdirs);
a = _e_app_cache_new(ac, path, scan_subdirs);
if (a)
{
_e_apps = evas_hash_add(_e_apps, a->path, a);
@ -786,7 +786,7 @@ e_app_window_name_class_title_role_find(const char *name, const char *class,
}
EAPI E_App *
e_app_file_find(char *file)
e_app_file_find(const char *file)
{
Evas_List *l;
@ -818,7 +818,7 @@ e_app_file_find(char *file)
}
EAPI E_App *
e_app_name_find(char *name)
e_app_name_find(const char *name)
{
Evas_List *l;
@ -843,7 +843,7 @@ e_app_name_find(char *name)
}
EAPI E_App *
e_app_generic_find(char *generic)
e_app_generic_find(const char *generic)
{
Evas_List *l;
@ -868,7 +868,7 @@ e_app_generic_find(char *generic)
}
EAPI E_App *
e_app_exe_find(char *exe)
e_app_exe_find(const char *exe)
{
Evas_List *l;
@ -895,7 +895,7 @@ e_app_exe_find(char *exe)
EAPI Evas_List *
e_app_name_glob_list(char *name)
e_app_name_glob_list(const char *name)
{
Evas_List *l, *list = NULL;
@ -916,7 +916,7 @@ e_app_name_glob_list(char *name)
}
EAPI Evas_List *
e_app_generic_glob_list(char *generic)
e_app_generic_glob_list(const char *generic)
{
Evas_List *l, *list = NULL;
@ -937,7 +937,7 @@ e_app_generic_glob_list(char *generic)
}
EAPI Evas_List *
e_app_exe_glob_list(char *exe)
e_app_exe_glob_list(const char *exe)
{
Evas_List *l, *list = NULL;
@ -958,7 +958,7 @@ e_app_exe_glob_list(char *exe)
}
EAPI Evas_List *
e_app_comment_glob_list(char *comment)
e_app_comment_glob_list(const char *comment)
{
Evas_List *l, *list = NULL;
@ -2071,7 +2071,7 @@ _e_app_cb_scan_cache_timer(void *data)
}
static E_App *
_e_app_cache_new(E_App_Cache *ac, char *path, int scan_subdirs)
_e_app_cache_new(E_App_Cache *ac, const char *path, int scan_subdirs)
{
Evas_List *l;
E_App *a;
@ -2160,7 +2160,7 @@ _e_app_cache_new(E_App_Cache *ac, char *path, int scan_subdirs)
}
static int
_e_app_exe_valid_get(char *exe)
_e_app_exe_valid_get(const char *exe)
{
if ((!exe) || (!exe[0])) return 0;
return 1;

@ -32,19 +32,19 @@ struct _E_App
E_App *parent; /* the parent e_app node */
E_App *orig; /* if this is a copy, point to the original */
char *name; /* app name */
char *generic; /* generic app name */
char *comment; /* a longer description */
char *exe; /* command to execute, NULL if directory */
const char *name; /* app name */
const char *generic; /* generic app name */
const char *comment; /* a longer description */
const char *exe; /* command to execute, NULL if directory */
char *path; /* path to .eet containing icons etc. etc. */
const char *path; /* path to .eet containing icons etc. etc. */
char *win_name; /* window name */
char *win_class; /* window class */
char *win_title; /* window title */
char *win_role; /* window role */
const char *win_name; /* window name */
const char *win_class; /* window class */
const char *win_title; /* window title */
const char *win_role; /* window role */
char *icon_class; /* icon_class */
const char *icon_class; /* icon_class */
Evas_List *subapps; /* if this a directory, a list of more E_App's */
@ -63,7 +63,7 @@ struct _E_App
unsigned char deleted : 1; /* this app's file is deleted from disk */
char *image; /* used when we're saving a image into the eap */
const char *image; /* used when we're saving a image into the eap */
int width; /* used for saving eap's image width in edje */
int height; /* used for saving eap's image height in edje */
};
@ -111,15 +111,15 @@ EAPI void e_app_change_callback_del (void (*func) (void *da
EAPI E_App *e_app_launch_id_pid_find (int launch_id, pid_t pid);
EAPI E_App *e_app_window_name_class_title_role_find (const char *name, const char *class, const char *title, const char *role);
EAPI E_App *e_app_file_find (char *file);
EAPI E_App *e_app_name_find (char *name);
EAPI E_App *e_app_generic_find (char *generic);
EAPI E_App *e_app_exe_find (char *exe);
EAPI Evas_List *e_app_name_glob_list (char *name);
EAPI Evas_List *e_app_generic_glob_list (char *generic);
EAPI Evas_List *e_app_exe_glob_list (char *exe);
EAPI Evas_List *e_app_comment_glob_list (char *comment);
EAPI E_App *e_app_file_find (const char *file);
EAPI E_App *e_app_name_find (const char *name);
EAPI E_App *e_app_generic_find (const char *generic);
EAPI E_App *e_app_exe_find (const char *exe);
EAPI Evas_List *e_app_name_glob_list (const char *name);
EAPI Evas_List *e_app_generic_glob_list (const char *generic);
EAPI Evas_List *e_app_exe_glob_list (const char *exe);
EAPI Evas_List *e_app_comment_glob_list (const char *comment);
EAPI void e_app_fields_fill (E_App *a, const char *path);
EAPI void e_app_fields_save (E_App *a);

@ -69,7 +69,7 @@ e_app_cache_shutdown(void)
}
EAPI E_App_Cache *
e_app_cache_load(char *path)
e_app_cache_load(const char *path)
{
Eet_File *ef;
char buf[PATH_MAX];
@ -156,7 +156,7 @@ e_app_cache_free(E_App_Cache *ac)
}
EAPI int
e_app_cache_save(E_App_Cache *ac, char *path)
e_app_cache_save(E_App_Cache *ac, const char *path)
{
Eet_File *ef;
char buf[4096];

@ -11,20 +11,20 @@ typedef struct _E_App_Cache E_App_Cache;
struct _E_App_Cache
{
char *name; /* app name */
char *generic; /* generic app name */
char *comment; /* a longer description */
char *exe; /* command to execute, NULL if directory */
char *file; /* the .eap filename */
const char *name; /* app name */
const char *generic; /* generic app name */
const char *comment; /* a longer description */
const char *exe; /* command to execute, NULL if directory */
const char *file; /* the .eap filename */
unsigned long long file_mod_time; /* the last modified time of the file */
char *win_name; /* window name */
char *win_class; /* window class */
char *win_title; /* window title */
char *win_role; /* window role */
const char *win_name; /* window name */
const char *win_class; /* window class */
const char *win_title; /* window title */
const char *win_role; /* window role */
char *icon_class; /* icon_class */
const char *icon_class; /* icon_class */
Evas_List *subapps; /* if this a directory, a list of more E_App's */
@ -41,10 +41,10 @@ struct _E_App_Cache
EAPI int e_app_cache_init(void);
EAPI int e_app_cache_shutdown(void);
EAPI E_App_Cache *e_app_cache_load(char *path);
EAPI E_App_Cache *e_app_cache_load(const char *path);
EAPI E_App_Cache *e_app_cache_generate(E_App *a);
EAPI void e_app_cache_free(E_App_Cache *ac);
EAPI int e_app_cache_save(E_App_Cache *ac, char *path);
EAPI int e_app_cache_save(E_App_Cache *ac, const char *path);
#endif
#endif

@ -16,7 +16,7 @@ e_bg_zone_update(E_Zone *zone, E_Bg_Transition transition)
Evas_List *l, *ll, *entries;
int ok;
const char *bgfile = "";
char *trans = "";
const char *trans = "";
if (transition == E_BG_TRANSITION_START) trans = e_config->transition_start;
else if (transition == E_BG_TRANSITION_DESK) trans = e_config->transition_desk;

@ -117,7 +117,7 @@ e_bindings_shutdown(void)
}
EAPI void
e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, char *action, char *params)
e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Mouse *bind;
@ -132,7 +132,7 @@ e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod,
}
EAPI void
e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, char *action, char *params)
e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
Evas_List *l;
@ -309,7 +309,7 @@ e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_
}
EAPI void
e_bindings_key_add(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, int any_mod, char *action, char *params)
e_bindings_key_add(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Key *bind;
@ -324,7 +324,7 @@ e_bindings_key_add(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, in
}
EAPI void
e_bindings_key_del(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, int any_mod, char *action, char *params)
e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
Evas_List *l;
@ -476,7 +476,7 @@ e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Ev
}
EAPI void
e_bindings_signal_add(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Modifier mod, int any_mod, char *action, char *params)
e_bindings_signal_add(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Signal *bind;
@ -492,7 +492,7 @@ e_bindings_signal_add(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Mo
}
EAPI void
e_bindings_signal_del(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Modifier mod, int any_mod, char *action, char *params)
e_bindings_signal_del(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
Evas_List *l;
@ -573,7 +573,7 @@ e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, char *sig, char
}
EAPI void
e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, char *action, char *params)
e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Wheel *bind;
@ -589,7 +589,7 @@ e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Mod
}
EAPI void
e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, char *action, char *params)
e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
Evas_List *l;

@ -45,29 +45,29 @@ struct _E_Binding_Mouse
int button;
E_Binding_Modifier mod;
unsigned char any_mod : 1;
char *action;
char *params;
const char *action;
const char *params;
};
struct _E_Binding_Key
{
E_Binding_Context ctxt;
char *key;
const char *key;
E_Binding_Modifier mod;
unsigned char any_mod : 1;
char *action;
char *params;
const char *action;
const char *params;
};
struct _E_Binding_Signal
{
E_Binding_Context ctxt;
char *sig;
char *src;
const char *sig;
const char *src;
E_Binding_Modifier mod;
unsigned char any_mod : 1;
char *action;
char *params;
const char *action;
const char *params;
};
struct _E_Binding_Wheel
@ -77,15 +77,15 @@ struct _E_Binding_Wheel
int z;
E_Binding_Modifier mod;
unsigned char any_mod : 1;
char *action;
char *params;
const char *action;
const char *params;
};
EAPI int e_bindings_init(void);
EAPI int e_bindings_shutdown(void);
EAPI void e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, char *action, char *params);
EAPI void e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, char *action, char *params);
EAPI void e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI void e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI E_Action *e_bindings_mouse_down_find(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Button_Down *ev, E_Binding_Mouse **bind_ret);
@ -93,20 +93,20 @@ EAPI E_Action *e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Ob
EAPI E_Action *e_bindings_mouse_up_find(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Button_Up *ev, E_Binding_Mouse **bind_ret);
EAPI E_Action *e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Button_Up *ev);
EAPI void e_bindings_key_add(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, int any_mod, char *action, char *params);
EAPI void e_bindings_key_del(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, int any_mod, char *action, char *params);
EAPI void e_bindings_key_add(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI void e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI E_Action *e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Key_Down *ev);
EAPI E_Action *e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Key_Up *ev);
EAPI void e_bindings_signal_add(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Modifier mod, int any_mod, char *action, char *params);
EAPI void e_bindings_signal_del(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Modifier mod, int any_mod, char *action, char *params);
EAPI void e_bindings_signal_add(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_signal_del(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI E_Action *e_bindings_signal_find(E_Binding_Context ctxt, E_Object *obj, char *sig, char *src, E_Binding_Signal **bind_ret);
EAPI E_Action *e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, char *sig, char *src);
EAPI void e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, char *action, char *params);
EAPI void e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, char *action, char *params);
EAPI void e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI void e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI E_Action *e_bindings_wheel_find(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Wheel *ev, E_Binding_Wheel **bind_ret);

@ -2622,7 +2622,7 @@ e_border_name_get(E_Border *bd)
EAPI void
e_border_signal_move_begin(E_Border *bd, char *sig, char *src)
e_border_signal_move_begin(E_Border *bd, const char *sig, const char *src)
{
E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
@ -2634,7 +2634,7 @@ e_border_signal_move_begin(E_Border *bd, char *sig, char *src)
}
EAPI void
e_border_signal_move_end(E_Border *bd, char *sig, char *src)
e_border_signal_move_end(E_Border *bd, const char *sig, const char *src)
{
E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
@ -2656,7 +2656,7 @@ e_border_resizing_get(E_Border *bd)
}
EAPI void
e_border_signal_resize_begin(E_Border *bd, char *dir, char *sig, char *src)
e_border_signal_resize_begin(E_Border *bd, const char *dir, const char *sig, const char *src)
{
Ecore_X_Gravity grav = ECORE_X_GRAVITY_NW;
int resize_mode = RESIZE_BR;
@ -2712,7 +2712,7 @@ e_border_signal_resize_begin(E_Border *bd, char *dir, char *sig, char *src)
}
EAPI void
e_border_signal_resize_end(E_Border *bd, char *dir, char *sig, char *src)
e_border_signal_resize_end(E_Border *bd, const char *dir, const char *sig, const char *src)
{
E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);

@ -139,7 +139,7 @@ struct _E_Border
struct {
unsigned char changed : 1;
unsigned char user_selected : 1;
char *name;
const char *name;
} border;
unsigned char shaped : 1;
@ -551,11 +551,11 @@ EAPI Evas_List *e_border_immortal_windows_get(void);
EAPI const char *e_border_name_get(E_Border *bd);
EAPI void e_border_signal_move_begin(E_Border *bd, char *sig, char *src);
EAPI void e_border_signal_move_end(E_Border *bd, char *sig, char *src);
EAPI void e_border_signal_move_begin(E_Border *bd, const char *sig, const char *src);
EAPI void e_border_signal_move_end(E_Border *bd, const char *sig, const char *src);
EAPI int e_border_resizing_get(E_Border *bd);
EAPI void e_border_signal_resize_begin(E_Border *bd, char *dir, char *sig, char *src);
EAPI void e_border_signal_resize_end(E_Border *bd, char *dir, char *sig, char *src);
EAPI void e_border_signal_resize_begin(E_Border *bd, const char *dir, const char *sig, const char *src);
EAPI void e_border_signal_resize_end(E_Border *bd, const char *dir, const char *sig, const char *src);
EAPI void e_border_resize_limit(E_Border *bd, int *w, int *h);
extern EAPI int E_EVENT_BORDER_RESIZE;

@ -12,7 +12,7 @@ typedef struct _E_Color_Class E_Color_Class;
struct _E_Color_Class
{
char *name;
const char *name;
int r, g, b, a;
int r2, g2, b2, a2;
int r3, g3, b3, a3;

@ -73,9 +73,9 @@ struct _E_Config
{
int config_version;
int show_splash; //GUI
char *desktop_default_background;
const char *desktop_default_background;
Evas_List *desktop_backgrounds;
char *desktop_default_name;
const char *desktop_default_name;
Evas_List *desktop_names;
double menus_scroll_speed; // GUI
double menus_fast_mouse_move_threshhold; // GUI
@ -104,7 +104,7 @@ struct _E_Config
int evas_engine_drag;
int evas_engine_win;
int evas_engine_zone;
char *language;
const char *language;
Evas_List *modules;
Evas_List *font_fallbacks;
Evas_List *font_defaults;
@ -163,9 +163,9 @@ struct _E_Config
double kill_timer_wait;
int ping_clients;
double ping_clients_wait;
char *transition_start;
char *transition_desk;
char *transition_change;
const char *transition_start;
const char *transition_desk;
const char *transition_change;
Evas_List *remembers;
int move_info_follows; // GUI
int resize_info_follows; // GUI
@ -177,7 +177,7 @@ struct _E_Config
int cursor_size; //GUI
int menu_autoscroll_margin; // GUI
int menu_autoscroll_cursor_margin; // GUI
char *input_method;
const char *input_method;
struct {
int move;
int resize;
@ -216,22 +216,22 @@ struct _E_Config
struct _E_Config_Module
{
char *name;
const char *name;
unsigned char enabled;
};
struct _E_Config_Theme
{
char *category;
char *file;
const char *category;
const char *file;
};
struct _E_Config_Binding_Mouse
{
int context;
int modifiers;
char *action;
char *params;
const char *action;
const char *params;
unsigned char button;
unsigned char any_mod;
};
@ -240,21 +240,21 @@ struct _E_Config_Binding_Key
{
int context;
int modifiers;
char *key;
char *action;
char *params;
const char *key;
const char *action;
const char *params;
unsigned char any_mod;
};
struct _E_Config_Binding_Signal
{
int context;
char *signal;
char *source;
const char *signal;
const char *source;
int modifiers;
unsigned char any_mod;
char *action;
char *params;
const char *action;
const char *params;
};
struct _E_Config_Binding_Wheel
@ -264,8 +264,8 @@ struct _E_Config_Binding_Wheel
int z;
int modifiers;
unsigned char any_mod;
char *action;
char *params;
const char *action;
const char *params;
};
struct _E_Config_Desktop_Background
@ -274,7 +274,7 @@ struct _E_Config_Desktop_Background
int zone;
int desk_x;
int desk_y;
char *file;
const char *file;
};
struct _E_Config_Desktop_Name
@ -283,18 +283,20 @@ struct _E_Config_Desktop_Name
int zone;
int desk_x;
int desk_y;
char *name;
const char *name;
};
struct _E_Config_Gadcon
{
char *name, *id;
Evas_List *clients;
const char *name;
const char *id;
Evas_List *clients;
};
struct _E_Config_Gadcon_Client
{
char *name, *id;
const char *name;
const char *id;
struct {
int pos, size, res;
} geom;
@ -302,7 +304,7 @@ struct _E_Config_Gadcon_Client
struct _E_Config_Shelf
{
char *name;
const char *name;
int container, zone;
int layer;
unsigned char popup;
@ -316,7 +318,7 @@ struct _E_Config_Shelf_Config
} res;
int x, y, w, h;
int orient;
char *style;
const char *style;
};
EAPI int e_config_init(void);

@ -19,7 +19,7 @@ static void _e_config_dialog_cb_close(void *data, E_Dialog *dia);
/* externally accessible functions */
EAPI E_Config_Dialog *
e_config_dialog_new(E_Container *con, char *title, char *icon, int icon_size, E_Config_Dialog_View *view, void *data)
e_config_dialog_new(E_Container *con, const char *title, const char *icon, int icon_size, E_Config_Dialog_View *view, void *data)
{
E_Config_Dialog *cfd;

@ -40,8 +40,8 @@ struct _E_Config_Dialog
E_Config_Dialog_View *view;
E_Config_Dialog_Data *cfdata;
E_Container *con;
char *title;
char *icon;
const char *title;
const char *icon;
int icon_size;
E_Dialog *dia;
void *data;
@ -49,7 +49,7 @@ struct _E_Config_Dialog
int hide_buttons;
};
EAPI E_Config_Dialog *e_config_dialog_new(E_Container *con, char *title, char *icon, int icon_size, E_Config_Dialog_View *view, void *data);
EAPI E_Config_Dialog *e_config_dialog_new(E_Container *con, const char *title, const char *icon, int icon_size, E_Config_Dialog_View *view, void *data);
#endif
#endif

@ -38,7 +38,7 @@ struct _E_Container
E_Gadman *gadman;
unsigned int num;
char *name;
const char *name;
Ecore_Evas *bg_ecore_evas;
Evas *bg_evas;

@ -91,7 +91,7 @@ e_desk_name_set(E_Desk *desk, const char *name)
}
EAPI void
e_desk_name_add(int container, int zone, int desk_x, int desk_y, char *name)
e_desk_name_add(int container, int zone, int desk_x, int desk_y, const char *name)
{
E_Config_Desktop_Name *cfname;

@ -18,7 +18,7 @@ struct _E_Desk
E_Object e_obj_inherit;
E_Zone *zone;
char *name;
const char *name;
int x, y;
char visible : 1;
@ -39,7 +39,7 @@ EAPI int e_desk_init(void);
EAPI int e_desk_shutdown(void);
EAPI E_Desk *e_desk_new(E_Zone *zone, int x, int y);
EAPI void e_desk_name_set(E_Desk *desk, const char *name);
EAPI void e_desk_name_add(int container, int zone, int desk_x, int desk_y, char *name);
EAPI void e_desk_name_add(int container, int zone, int desk_x, int desk_y, const char *name);
EAPI void e_desk_name_del(int container, int zone, int desk_x, int desk_y);
EAPI void e_desk_name_update(void);
EAPI void e_desk_show(E_Desk *desk);

@ -1,7 +1,8 @@
#ifdef E_TYPEDEFS
#else
#ifdef E_DESKLOCK_H
#ifndef E_DESKLOCK_H
#define E_DESKLOCK_H
EAPI int e_desklock_init(void);
EAPI int e_desklock_shutdown(void);

@ -75,12 +75,12 @@ e_dialog_new(E_Container *con)
}
EAPI void
e_dialog_button_add(E_Dialog *dia, char *label, char *icon, void (*func) (void *data, E_Dialog *dia), void *data)
e_dialog_button_add(E_Dialog *dia, const char *label, const char *icon, void (*func) (void *data, E_Dialog *dia), void *data)
{
Evas_Object *o;
if (!func) func = _e_dialog_del_func_cb;
o = e_widget_button_add(e_win_evas_get(dia->win), label, icon, func, data, dia);
o = e_widget_button_add(e_win_evas_get(dia->win), label, icon, (void (*) (void*, void*)) func, data, dia);
e_widget_list_object_append(dia->box_object, o, 1, 0, 0.5);
dia->buttons = evas_list_append(dia->buttons, o);
}
@ -117,13 +117,13 @@ e_dialog_button_disable_num_get(E_Dialog *dia, int button)
}
EAPI void
e_dialog_title_set(E_Dialog *dia, char *title)
e_dialog_title_set(E_Dialog *dia, const char *title)
{
e_win_title_set(dia->win, title);
}
EAPI void
e_dialog_text_set(E_Dialog *dia, char *text)
e_dialog_text_set(E_Dialog *dia, const char *text)
{
if (!dia->text_object)
{
@ -140,7 +140,7 @@ e_dialog_text_set(E_Dialog *dia, char *text)
}
EAPI void
e_dialog_icon_set(E_Dialog *dia, char *icon, Evas_Coord size)
e_dialog_icon_set(E_Dialog *dia, const char *icon, Evas_Coord size)
{
if (!icon) return;

@ -30,13 +30,13 @@ struct _E_Dialog
};
EAPI E_Dialog *e_dialog_new (E_Container *con);
EAPI void e_dialog_button_add (E_Dialog *dia, char *label, char *icon, void (*func) (void *data, E_Dialog *dia), void *data);
EAPI void e_dialog_button_add (E_Dialog *dia, const char *label, const char *icon, void (*func) (void *data, E_Dialog *dia), void *data);
EAPI int e_dialog_button_focus_num (E_Dialog *dia, int button);
EAPI int e_dialog_button_disable_num_set (E_Dialog *dia, int button, int disabled);
EAPI int e_dialog_button_disable_num_get (E_Dialog *dia, int button);
EAPI void e_dialog_title_set (E_Dialog *dia, char *title);
EAPI void e_dialog_text_set (E_Dialog *dia, char *text);
EAPI void e_dialog_icon_set (E_Dialog *dia, char *icon, Evas_Coord size);
EAPI void e_dialog_title_set (E_Dialog *dia, const char *title);
EAPI void e_dialog_text_set (E_Dialog *dia, const char *text);
EAPI void e_dialog_icon_set (E_Dialog *dia, const char *icon, Evas_Coord size);
EAPI void e_dialog_content_set (E_Dialog *dia, Evas_Object *obj, Evas_Coord minw, Evas_Coord minh);
EAPI void e_dialog_resizable_set (E_Dialog *dia, int resizable);
EAPI void e_dialog_show (E_Dialog *dia);

@ -62,7 +62,7 @@ e_error_message_manager_show(E_Manager *man, char *title, char *txt)
E_Container *con;
Ecore_X_Window win;
int x, y;
char *s;
const char *s;
con = e_container_current_get(man);
@ -357,7 +357,7 @@ _e_error_cb_ok_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Down *ev;
Ecore_Evas *ee;
char *s;
const char *s;
ev = event_info;
if (ev->button != 1) return;
@ -373,7 +373,7 @@ _e_error_cb_ok_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
Evas_Event_Mouse_Up *ev;
Ecore_Evas *ee;
Evas_Object *o;
char *s;
const char *s;
ev = event_info;
if (ev->button != 1) return;

@ -21,7 +21,7 @@ typedef struct _E_Exe_List E_Exe_List;
struct _E_Exe
{
char *path;
const char *path;
};
struct _E_Exe_List

@ -16,8 +16,8 @@ struct _E_Exehist
struct _E_Exehist_Item
{
char *exe;
char *launch_method;
const char *exe;
const char *launch_method;
double exetime;
};

@ -103,7 +103,7 @@ e_fm_mime_init(void)
{
E_Fm_Mime_Entry *root;
E_Fm_Mime_Entry *entry;
E_Fm_Mime_Entry *l1,*l2,*l3;
E_Fm_Mime_Entry *l1,*l2;
E_Fm_Mime_Action *action;
if(init_count)
@ -402,7 +402,7 @@ e_fm_mime_action_call(E_Fm_Smart_Data *sd, E_Fm_Mime_Action *action)
return 1;
}
EAPI int
EAPI void
e_fm_mime_action_default_call(E_Fm_Smart_Data *sd)
{
E_Fm_Mime_Entry *mime;
@ -507,7 +507,6 @@ _e_fm_mime_string_tokenizer(Evas_List *files, E_Fm_File *hover, char *istr)
if(*c == 'f')
{
int j = 2;
char *f = NULL;
astr = calloc(PATH_MAX,sizeof(char));
for(l = files; l; l = l->next)

@ -60,7 +60,7 @@ EAPI void e_fm_mime_shutdwon(void);
EAPI E_Fm_Mime_Entry *e_fm_mime_get_from_list(Evas_List *files);
EAPI void e_fm_mime_set(E_Fm_File *file);
EAPI int e_fm_mime_action_call(E_Fm_Smart_Data *sd, E_Fm_Mime_Action *action);
EAPI int e_fm_mime_action_default_call(E_Fm_Smart_Data *sd);
EAPI void e_fm_mime_action_default_call(E_Fm_Smart_Data *sd);
EAPI char *e_fm_mime_translate(E_Fm_Smart_Data *sd, char *istr);

@ -132,7 +132,7 @@ e_font_fallback_clear(void)
e_config->font_fallbacks = evas_list_remove_list(
e_config->font_fallbacks,
e_config->font_fallbacks);
E_FREE(eff->name);
if (eff->name) evas_stringshare_del(eff->name);
E_FREE(eff);
}
}

@ -13,19 +13,19 @@ typedef struct _E_Font_Fallback E_Font_Available;
struct _E_Font_Default
{
char *text_class;
char *font;
int size;
const char *text_class;
const char *font;
int size;
};
struct _E_Font_Fallback
{
char *name;
const char *name;
};
struct _E_Font_Available
{
char *name;
const char *name;
};
EAPI int e_font_init(void);

@ -121,7 +121,7 @@ e_gadcon_provider_unregister(E_Gadcon_Client_Class *cc)
}
EAPI E_Gadcon *
e_gadcon_swallowed_new(char *name, char *id, Evas_Object *obj, char *swallow_name)
e_gadcon_swallowed_new(const char *name, char *id, Evas_Object *obj, char *swallow_name)
{
E_Gadcon *gc;

@ -94,7 +94,7 @@ EAPI int e_gadcon_init(void);
EAPI int e_gadcon_shutdown(void);
EAPI void e_gadcon_provider_register(E_Gadcon_Client_Class *cc);
EAPI void e_gadcon_provider_unregister(E_Gadcon_Client_Class *cc);
EAPI E_Gadcon *e_gadcon_swallowed_new(char *name, char *id, Evas_Object *obj, char *swallow_name);
EAPI E_Gadcon *e_gadcon_swallowed_new(const char *name, char *id, Evas_Object *obj, char *swallow_name);
EAPI void e_gadcon_layout_policy_set(E_Gadcon *gc, E_Gadcon_Layout_Policy layout_policy);
EAPI void e_gadcon_populate(E_Gadcon *gc);
EAPI void e_gadcon_orient(E_Gadcon *gc, E_Gadcon_Orient orient);

@ -627,7 +627,7 @@ e_gadman_client_menu_new(E_Gadman_Client *gmc)
E_Menu *m;
E_Menu_Item *mi;
int disallow, seperator;
char *s;
const char *s;
E_OBJECT_CHECK_RETURN(gmc, NULL);
E_OBJECT_TYPE_CHECK_RETURN(gmc, E_GADMAN_CLIENT_TYPE, NULL);

@ -75,7 +75,7 @@ struct _E_Gadman_Client
unsigned char resizing_u : 1;
unsigned char resizing_d : 1;
E_Gadman_Edge edge;
char