someone is using an editor that has tabs. stop it.

ecrustified.


SVN revision: 55702
This commit is contained in:
Mike Blumenkrantz 2010-12-22 22:36:13 +00:00
parent 75f95cebe2
commit 76b1e1805f
1 changed files with 251 additions and 231 deletions

View File

@ -43,12 +43,19 @@ struct _E_Thumb
/* local subsystem functions */
static int _e_ipc_init(void);
static Eina_Bool _e_ipc_cb_server_add(void *data, int type, void *event);
static Eina_Bool _e_ipc_cb_server_del(void *data, int type, void *event);
static Eina_Bool _e_ipc_cb_server_data(void *data, int type, void *event);
static Eina_Bool _e_ipc_cb_server_add(void *data,
int type,
void *event);
static Eina_Bool _e_ipc_cb_server_del(void *data,
int type,
void *event);
static Eina_Bool _e_ipc_cb_server_data(void *data,
int type,
void *event);
static Eina_Bool _e_cb_timer(void *data);
static void _e_thumb_generate(E_Thumb *eth);
static char *_e_thumb_file_id(char *file, char *key);
static char *_e_thumb_file_id(char *file,
char *key);
/* local subsystem globals */
static Ecore_Ipc_Server *_e_ipc_server = NULL;
@ -58,7 +65,8 @@ static char _thumbdir[4096] = "";
/* externally accessible functions */
int
main(int argc, char **argv)
main(int argc,
char **argv)
{
int i;
@ -141,7 +149,9 @@ _e_ipc_init(void)
}
static Eina_Bool
_e_ipc_cb_server_add(void *data __UNUSED__, int type __UNUSED__, void *event)
_e_ipc_cb_server_add(void *data __UNUSED__,
int type __UNUSED__,
void *event)
{
Ecore_Ipc_Event_Server_Add *e;
@ -154,7 +164,9 @@ _e_ipc_cb_server_add(void *data __UNUSED__, int type __UNUSED__, void *event)
}
static Eina_Bool
_e_ipc_cb_server_del(void *data __UNUSED__, int type __UNUSED__, void *event __UNUSED__)
_e_ipc_cb_server_del(void *data __UNUSED__,
int type __UNUSED__,
void *event __UNUSED__)
{
/* quit now */
ecore_main_loop_quit();
@ -162,7 +174,9 @@ _e_ipc_cb_server_del(void *data __UNUSED__, int type __UNUSED__, void *event __U
}
static Eina_Bool
_e_ipc_cb_server_data(void *data __UNUSED__, int type __UNUSED__, void *event)
_e_ipc_cb_server_data(void *data __UNUSED__,
int type __UNUSED__,
void *event)
{
Ecore_Ipc_Event_Server_Data *e;
E_Thumb *eth;
@ -198,6 +212,7 @@ _e_ipc_cb_server_data(void *data __UNUSED__, int type __UNUSED__, void *event)
}
}
break;
case 2:
/* end thumb */
EINA_LIST_FOREACH(_thumblist, l, eth)
@ -212,10 +227,12 @@ _e_ipc_cb_server_data(void *data __UNUSED__, int type __UNUSED__, void *event)
}
}
break;
case 3:
/* quit now */
ecore_main_loop_quit();
break;
default:
break;
}
@ -502,7 +519,8 @@ _e_thumb_generate(E_Thumb *eth)
/* will free all */
if (edje) evas_object_del(edje);
if (ee_im) ecore_evas_free(ee_im);
else if (im) evas_object_del(im);
else if (im)
evas_object_del(im);
ecore_evas_free(ee);
eet_clearcache();
}
@ -511,7 +529,8 @@ _e_thumb_generate(E_Thumb *eth)
}
static char *
_e_thumb_file_id(char *file, char *key)
_e_thumb_file_id(char *file,
char *key)
{
char s[64];
const char *chmap = "0123456789abcdef";
@ -542,3 +561,4 @@ _e_thumb_file_id(char *file, char *key)
s[(i * 2)] = 0;
return strdup(s);
}