forked from enlightenment/efl
A little bit of formatting here.
Discomfitor, go fix ecrustify :(. Sucking hard for functions like elm_object_signal_callback_add, i.e., big function prototypes as argument types. SVN revision: 55055
This commit is contained in:
parent
1164a8ab20
commit
731ebfcb9a
|
@ -286,7 +286,9 @@ myapp_CFLAGS =
|
|||
*
|
||||
*/
|
||||
|
||||
static Eina_Bool _elm_signal_exit(void *data, int ev_type, void *ev);
|
||||
static Eina_Bool _elm_signal_exit(void *data,
|
||||
int ev_type,
|
||||
void *ev);
|
||||
|
||||
char *_elm_appname = NULL;
|
||||
const char *_elm_data_dir = NULL;
|
||||
|
@ -303,7 +305,9 @@ static Ecore_Event_Handler *_elm_exit_handler = NULL;
|
|||
static Eina_Bool quicklaunch_on = 0;
|
||||
|
||||
static Eina_Bool
|
||||
_elm_signal_exit(void *data __UNUSED__, int ev_type __UNUSED__, void *ev __UNUSED__)
|
||||
_elm_signal_exit(void *data __UNUSED__,
|
||||
int ev_type __UNUSED__,
|
||||
void *ev __UNUSED__)
|
||||
{
|
||||
elm_exit();
|
||||
return ECORE_CALLBACK_PASS_ON;
|
||||
|
@ -330,7 +334,8 @@ _elm_rescale(void)
|
|||
* @ingroup General
|
||||
*/
|
||||
EAPI int
|
||||
elm_init(int argc, char **argv)
|
||||
elm_init(int argc,
|
||||
char **argv)
|
||||
{
|
||||
_elm_init_count++;
|
||||
if (_elm_init_count > 1) return _elm_init_count;
|
||||
|
@ -445,7 +450,8 @@ elm_quicklaunch_mode_get(void)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
elm_quicklaunch_init(int argc, char **argv)
|
||||
elm_quicklaunch_init(int argc,
|
||||
char **argv)
|
||||
{
|
||||
char buf[PATH_MAX], *s;
|
||||
|
||||
|
@ -548,7 +554,8 @@ elm_quicklaunch_init(int argc, char **argv)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
elm_quicklaunch_sub_init(int argc, char **argv)
|
||||
elm_quicklaunch_sub_init(int argc,
|
||||
char **argv)
|
||||
{
|
||||
_elm_sub_init_count++;
|
||||
if (_elm_sub_init_count > 1) return _elm_sub_init_count;
|
||||
|
@ -701,10 +708,12 @@ elm_quicklaunch_seed(void)
|
|||
}
|
||||
|
||||
static void *qr_handle = NULL;
|
||||
static int (*qr_main) (int argc, char **argv) = NULL;
|
||||
static int (*qr_main)(int argc,
|
||||
char **argv) = NULL;
|
||||
|
||||
EAPI Eina_Bool
|
||||
elm_quicklaunch_prepare(int argc __UNUSED__, char **argv)
|
||||
elm_quicklaunch_prepare(int argc __UNUSED__,
|
||||
char **argv)
|
||||
{
|
||||
#ifdef HAVE_FORK
|
||||
char *exe = elm_quicklaunch_exe_path_get(argv[0]);
|
||||
|
@ -785,10 +794,15 @@ save_env(void)
|
|||
environ[i] = strdup(oldenv[i]);
|
||||
environ[i] = NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
EAPI Eina_Bool
|
||||
elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data)
|
||||
elm_quicklaunch_fork(int argc,
|
||||
char **argv,
|
||||
char *cwd,
|
||||
void (postfork_func) (void *data),
|
||||
void *postfork_data)
|
||||
{
|
||||
#ifdef HAVE_FORK
|
||||
pid_t child;
|
||||
|
@ -898,7 +912,8 @@ elm_quicklaunch_cleanup(void)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
elm_quicklaunch_fallback(int argc, char **argv)
|
||||
elm_quicklaunch_fallback(int argc,
|
||||
char **argv)
|
||||
{
|
||||
int ret;
|
||||
elm_quicklaunch_init(argc, argv);
|
||||
|
@ -928,7 +943,7 @@ elm_quicklaunch_exe_path_get(const char *exe)
|
|||
buf2 = alloca(strlen(path) + 1);
|
||||
p = path;
|
||||
pp = p;
|
||||
for (;;)
|
||||
for (;; )
|
||||
{
|
||||
if ((*p == ':') || (!*p))
|
||||
{
|
||||
|
@ -984,7 +999,6 @@ elm_exit(void)
|
|||
ecore_main_loop_quit();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set new policy value.
|
||||
*
|
||||
|
@ -1003,7 +1017,8 @@ elm_exit(void)
|
|||
* value might be enforced).
|
||||
*/
|
||||
EAPI Eina_Bool
|
||||
elm_policy_set(unsigned int policy, int value)
|
||||
elm_policy_set(unsigned int policy,
|
||||
int value)
|
||||
{
|
||||
Elm_Event_Policy_Changed *ev;
|
||||
|
||||
|
@ -1061,7 +1076,8 @@ elm_policy_get(unsigned int policy)
|
|||
* @ingroup Scaling
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_scale_set(Evas_Object *obj, double scale)
|
||||
elm_object_scale_set(Evas_Object *obj,
|
||||
double scale)
|
||||
{
|
||||
elm_widget_scale_set(obj, scale);
|
||||
}
|
||||
|
@ -1095,7 +1111,8 @@ elm_object_scale_get(const Evas_Object *obj)
|
|||
* @ingroup Styles
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_style_set(Evas_Object *obj, const char *style)
|
||||
elm_object_style_set(Evas_Object *obj,
|
||||
const char *style)
|
||||
{
|
||||
elm_widget_style_set(obj, style);
|
||||
}
|
||||
|
@ -1127,7 +1144,8 @@ elm_object_style_get(const Evas_Object *obj)
|
|||
* @ingroup Styles
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled)
|
||||
elm_object_disabled_set(Evas_Object *obj,
|
||||
Eina_Bool disabled)
|
||||
{
|
||||
elm_widget_disabled_set(obj, disabled);
|
||||
}
|
||||
|
@ -1288,7 +1306,8 @@ elm_profile_current_get(void)
|
|||
* @note You must free it with elm_profile_dir_free().
|
||||
*/
|
||||
EAPI const char *
|
||||
elm_profile_dir_get(const char *profile, Eina_Bool is_user)
|
||||
elm_profile_dir_get(const char *profile,
|
||||
Eina_Bool is_user)
|
||||
{
|
||||
return _elm_config_profile_dir_get(profile, is_user);
|
||||
}
|
||||
|
@ -2084,7 +2103,10 @@ elm_edje_collection_cache_all_set(int size)
|
|||
* @ingroup Fingers
|
||||
*/
|
||||
EAPI void
|
||||
elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h)
|
||||
elm_coords_finger_size_adjust(int times_w,
|
||||
Evas_Coord *w,
|
||||
int times_h,
|
||||
Evas_Coord *h)
|
||||
{
|
||||
if ((w) && (*w < (_elm_config->finger_size * times_w)))
|
||||
*w = _elm_config->finger_size * times_w;
|
||||
|
@ -2158,7 +2180,8 @@ elm_object_unfocus(Evas_Object *obj)
|
|||
* @ingroup Focus
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable)
|
||||
elm_object_focus_allow_set(Evas_Object *obj,
|
||||
Eina_Bool enable)
|
||||
{
|
||||
elm_widget_can_focus_set(obj, enable);
|
||||
}
|
||||
|
@ -2193,7 +2216,8 @@ elm_object_focus_allow_get(const Evas_Object *obj)
|
|||
* @ingroup Focus
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs)
|
||||
elm_object_focus_custom_chain_set(Evas_Object *obj,
|
||||
Eina_List *objs)
|
||||
{
|
||||
elm_widget_focus_custom_chain_set(obj, objs);
|
||||
}
|
||||
|
@ -2236,12 +2260,13 @@ elm_object_focus_custom_chain_get(const Evas_Object *obj)
|
|||
* @ingroup Focus
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child)
|
||||
elm_object_focus_custom_chain_append(Evas_Object *obj,
|
||||
Evas_Object *child,
|
||||
Evas_Object *relative_child)
|
||||
{
|
||||
elm_widget_focus_custom_chain_append(obj, child, relative_child);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Prepend object to custom focus chain.
|
||||
*
|
||||
|
@ -2256,7 +2281,9 @@ elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_
|
|||
* @ingroup Focus
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child)
|
||||
elm_object_focus_custom_chain_prepend(Evas_Object *obj,
|
||||
Evas_Object *child,
|
||||
Evas_Object *relative_child)
|
||||
{
|
||||
elm_widget_focus_custom_chain_prepend(obj, child, relative_child);
|
||||
}
|
||||
|
@ -2274,7 +2301,8 @@ elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas
|
|||
* @ingroup Focus
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir)
|
||||
elm_object_focus_cycle(Evas_Object *obj,
|
||||
Elm_Focus_Direction dir)
|
||||
{
|
||||
elm_widget_focus_cycle(obj, dir);
|
||||
}
|
||||
|
@ -2292,7 +2320,9 @@ elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir)
|
|||
* @ingroup Widget
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_focus_direction_go(Evas_Object *obj, int x, int y)
|
||||
elm_object_focus_direction_go(Evas_Object *obj,
|
||||
int x,
|
||||
int y)
|
||||
{
|
||||
elm_widget_focus_direction_go(obj, x, y);
|
||||
}
|
||||
|
@ -2419,7 +2449,8 @@ elm_object_scroll_freeze_push(Evas_Object *obj)
|
|||
* @ingroup Scrollhints
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock)
|
||||
elm_object_scroll_lock_x_set(Evas_Object *obj,
|
||||
Eina_Bool lock)
|
||||
{
|
||||
elm_widget_drag_lock_x_set(obj, lock);
|
||||
}
|
||||
|
@ -2435,7 +2466,8 @@ elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock)
|
|||
* @ingroup Scrollhints
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock)
|
||||
elm_object_scroll_lock_y_set(Evas_Object *obj,
|
||||
Eina_Bool lock)
|
||||
{
|
||||
elm_widget_drag_lock_y_set(obj, lock);
|
||||
}
|
||||
|
@ -2562,7 +2594,9 @@ elm_object_widget_type_get(const Evas_Object *obj)
|
|||
* @ingroup General
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source)
|
||||
elm_object_signal_emit(Evas_Object *obj,
|
||||
const char *emission,
|
||||
const char *source)
|
||||
{
|
||||
elm_widget_signal_emit(obj, emission, source);
|
||||
}
|
||||
|
@ -2642,7 +2676,8 @@ elm_object_tree_dump(const Evas_Object *top)
|
|||
* @ingroup Debug
|
||||
*/
|
||||
EAPI void
|
||||
elm_object_tree_dot_dump(const Evas_Object *top, const char *file)
|
||||
elm_object_tree_dot_dump(const Evas_Object *top,
|
||||
const char *file)
|
||||
{
|
||||
#ifdef ELM_DEBUG
|
||||
FILE *f = fopen(file, "w");
|
||||
|
@ -2678,4 +2713,3 @@ elm_longpress_timeout_get(void)
|
|||
{
|
||||
return _elm_config->longpress_timeout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue