forked from enlightenment/enlightenment
parent
6dc9647fa8
commit
da336f50b8
|
@ -1212,7 +1212,7 @@ _e_app_new_save(E_App *a)
|
||||||
char cmd[2048];
|
char cmd[2048];
|
||||||
char ipart[512];
|
char ipart[512];
|
||||||
FILE *out = NULL;
|
FILE *out = NULL;
|
||||||
char *start, *end, *imgdir;
|
char *start, *end, *imgdir = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!a->path) return 0;
|
if (!a->path) return 0;
|
||||||
|
@ -1259,7 +1259,11 @@ _e_app_new_save(E_App *a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (imgdir) snprintf(ipart, sizeof(ipart), "-id %s", imgdir);
|
if (imgdir)
|
||||||
|
{
|
||||||
|
snprintf(ipart, sizeof(ipart), "-id %s", imgdir);
|
||||||
|
free(imgdir);
|
||||||
|
}
|
||||||
else ipart[0] = '\0';
|
else ipart[0] = '\0';
|
||||||
|
|
||||||
if (a->image)
|
if (a->image)
|
||||||
|
|
|
@ -950,7 +950,8 @@ break;
|
||||||
#elif (TYPE == E_WM_IN)
|
#elif (TYPE == E_WM_IN)
|
||||||
#elif (TYPE == E_REMOTE_IN)
|
#elif (TYPE == E_REMOTE_IN)
|
||||||
STRING_INT_LIST(v, HDL);
|
STRING_INT_LIST(v, HDL);
|
||||||
printf("REPLY: \"%s\" ENABLED %i\n", v->str, v->val);
|
if (v->str) printf("REPLY: \"%s\" ENABLED %i\n", v->str, v->val);
|
||||||
|
else printf("REPLY: \"\" ENABLED %i\n", v->val);
|
||||||
END_STRING_INT_LIST(v);
|
END_STRING_INT_LIST(v);
|
||||||
#elif (TYPE == E_LIB_IN)
|
#elif (TYPE == E_LIB_IN)
|
||||||
GENERIC(HDL);
|
GENERIC(HDL);
|
||||||
|
@ -994,7 +995,7 @@ break;
|
||||||
STRING(s, HDL);
|
STRING(s, HDL);
|
||||||
/* TODO: Check if file exists */
|
/* TODO: Check if file exists */
|
||||||
E_FREE(e_config->desktop_default_background);
|
E_FREE(e_config->desktop_default_background);
|
||||||
e_config->desktop_default_background = strdup(s);
|
if (s) e_config->desktop_default_background = strdup(s);
|
||||||
e_bg_update();
|
e_bg_update();
|
||||||
SAVE;
|
SAVE;
|
||||||
END_STRING(s);
|
END_STRING(s);
|
||||||
|
@ -1021,12 +1022,13 @@ break;
|
||||||
#elif (TYPE == E_WM_IN)
|
#elif (TYPE == E_WM_IN)
|
||||||
#elif (TYPE == E_REMOTE_IN)
|
#elif (TYPE == E_REMOTE_IN)
|
||||||
STRING(s, HDL);
|
STRING(s, HDL);
|
||||||
printf("REPLY: \"%s\"\n", s);
|
if (s) printf("REPLY: \"%s\"\n", s);
|
||||||
|
else printf("REPLY: \"\"\n");
|
||||||
END_STRING(s);
|
END_STRING(s);
|
||||||
#elif (TYPE == E_LIB_IN)
|
#elif (TYPE == E_LIB_IN)
|
||||||
STRING(s, HDL);
|
STRING(s, HDL);
|
||||||
RESPONSE(r, E_Response_Background_Get);
|
RESPONSE(r, E_Response_Background_Get);
|
||||||
r->file = strdup(s);
|
if (s) r->file = strdup(s);
|
||||||
END_RESPONSE(r, E_RESPONSE_BACKGROUND_GET);
|
END_RESPONSE(r, E_RESPONSE_BACKGROUND_GET);
|
||||||
END_STRING(s);
|
END_STRING(s);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1066,7 +1068,8 @@ break;
|
||||||
LIST();
|
LIST();
|
||||||
DECODE(e_ipc_codec_str_list_dec) {
|
DECODE(e_ipc_codec_str_list_dec) {
|
||||||
FOR(dat) {
|
FOR(dat) {
|
||||||
printf("REPLY: \"%s\"\n", (char *)(l->data));
|
if (l->data) printf("REPLY: \"%s\"\n", (char *)(l->data));
|
||||||
|
else printf("REPLY: \"\"\n");
|
||||||
}
|
}
|
||||||
FREE_LIST(dat);
|
FREE_LIST(dat);
|
||||||
}
|
}
|
||||||
|
@ -1160,7 +1163,8 @@ break;
|
||||||
LIST();
|
LIST();
|
||||||
DECODE(e_ipc_codec_str_list_dec) {
|
DECODE(e_ipc_codec_str_list_dec) {
|
||||||
FOR(dat) {
|
FOR(dat) {
|
||||||
printf("REPLY: \"%s\"\n", (char *)(l->data));
|
if (l->data) printf("REPLY: \"%s\"\n", (char *)(l->data));
|
||||||
|
else printf("REPLY: \"\"\n");
|
||||||
}
|
}
|
||||||
FREE_LIST(dat);
|
FREE_LIST(dat);
|
||||||
}
|
}
|
||||||
|
@ -1232,7 +1236,7 @@ break;
|
||||||
#elif (TYPE == E_REMOTE_IN)
|
#elif (TYPE == E_REMOTE_IN)
|
||||||
STRING2_INT(text_class, font_name, font_size, e_2str_int, HDL);
|
STRING2_INT(text_class, font_name, font_size, e_2str_int, HDL);
|
||||||
printf("REPLY: DEFAULT TEXT_CLASS=\"%s\" NAME=\"%s\" SIZE=%d\n",
|
printf("REPLY: DEFAULT TEXT_CLASS=\"%s\" NAME=\"%s\" SIZE=%d\n",
|
||||||
text_class, font_name, font_size);
|
text_class, font_name, font_size);
|
||||||
END_STRING2_INT(e_2str_int);
|
END_STRING2_INT(e_2str_int);
|
||||||
#endif
|
#endif
|
||||||
#undef HDL
|
#undef HDL
|
||||||
|
@ -1357,7 +1361,8 @@ break;
|
||||||
LIST();
|
LIST();
|
||||||
DECODE(e_ipc_codec_str_list_dec) {
|
DECODE(e_ipc_codec_str_list_dec) {
|
||||||
FOR(dat) {
|
FOR(dat) {
|
||||||
printf("REPLY: \"%s\"\n", (char *)(l->data));
|
if (l->data) printf("REPLY: \"%s\"\n", (char *)(l->data));
|
||||||
|
else printf("REPLY: \"\"\n");
|
||||||
}
|
}
|
||||||
FREE_LIST(dat);
|
FREE_LIST(dat);
|
||||||
}
|
}
|
||||||
|
@ -1375,7 +1380,7 @@ break;
|
||||||
STRING(s, HDL);
|
STRING(s, HDL);
|
||||||
/* TODO: Check if language exists */
|
/* TODO: Check if language exists */
|
||||||
E_FREE(e_config->language);
|
E_FREE(e_config->language);
|
||||||
e_config->language = strdup(s);
|
if (s) e_config->language = strdup(s);
|
||||||
if ((e_config->language) && (e_config->language[0] != 0))
|
if ((e_config->language) && (e_config->language[0] != 0))
|
||||||
e_intl_language_set(e_config->language);
|
e_intl_language_set(e_config->language);
|
||||||
else
|
else
|
||||||
|
@ -1405,12 +1410,13 @@ break;
|
||||||
#elif (TYPE == E_WM_IN)
|
#elif (TYPE == E_WM_IN)
|
||||||
#elif (TYPE == E_REMOTE_IN)
|
#elif (TYPE == E_REMOTE_IN)
|
||||||
STRING(s, HDL);
|
STRING(s, HDL);
|
||||||
printf("REPLY: \"%s\"\n", s);
|
if (s) printf("REPLY: \"%s\"\n", s);
|
||||||
|
else printf("REPLY: \"\"\n");
|
||||||
END_STRING(s);
|
END_STRING(s);
|
||||||
#elif (TYPE == E_LIB_IN)
|
#elif (TYPE == E_LIB_IN)
|
||||||
STRING(s, HDL);
|
STRING(s, HDL);
|
||||||
RESPONSE(r, E_Response_Language_Get);
|
RESPONSE(r, E_Response_Language_Get);
|
||||||
r->lang = strdup(s);
|
if (s) r->lang = strdup(s);
|
||||||
END_RESPONSE(r, E_RESPONSE_LANGUAGE_GET);
|
END_RESPONSE(r, E_RESPONSE_LANGUAGE_GET);
|
||||||
END_STRING(s);
|
END_STRING(s);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1433,9 +1439,11 @@ break;
|
||||||
dir_list = e_path_dir_list_get(path);
|
dir_list = e_path_dir_list_get(path);
|
||||||
|
|
||||||
E_Path_Dir *p;
|
E_Path_Dir *p;
|
||||||
dat = evas_list_append(dat, strdup(s));
|
if (s) {
|
||||||
FOR(dir_list) { p = l->data;
|
dat = evas_list_append(dat, strdup(s));
|
||||||
dat = evas_list_append(dat, p->dir);
|
FOR(dir_list) { p = l->data;
|
||||||
|
dat = evas_list_append(dat, p->dir);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ENCODE(dat, e_ipc_codec_str_list_enc);
|
ENCODE(dat, e_ipc_codec_str_list_enc);
|
||||||
|
@ -2402,8 +2410,8 @@ break;
|
||||||
eb->button = bind.button;
|
eb->button = bind.button;
|
||||||
eb->modifiers = bind.modifiers;
|
eb->modifiers = bind.modifiers;
|
||||||
eb->any_mod = bind.any_mod;
|
eb->any_mod = bind.any_mod;
|
||||||
eb->action = strdup(bind.action);
|
if (bind.action) eb->action = strdup(bind.action);
|
||||||
eb->params = strdup(bind.params);
|
if (bind.params) eb->params = strdup(bind.params);
|
||||||
e_border_button_bindings_ungrab_all();
|
e_border_button_bindings_ungrab_all();
|
||||||
e_bindings_mouse_add(bind.context, bind.button, bind.modifiers,
|
e_bindings_mouse_add(bind.context, bind.button, bind.modifiers,
|
||||||
bind.any_mod, bind.action, bind.params);
|
bind.any_mod, bind.action, bind.params);
|
||||||
|
@ -2724,9 +2732,9 @@ break;
|
||||||
eb->context = bind.context;
|
eb->context = bind.context;
|
||||||
eb->modifiers = bind.modifiers;
|
eb->modifiers = bind.modifiers;
|
||||||
eb->any_mod = bind.any_mod;
|
eb->any_mod = bind.any_mod;
|
||||||
eb->key = strdup(bind.key);
|
if (bind.key) eb->key = strdup(bind.key);
|
||||||
eb->action = strdup(bind.action);
|
if (bind.action) eb->action = strdup(bind.action);
|
||||||
eb->params = strdup(bind.params);
|
if (bind.params) eb->params = strdup(bind.params);
|
||||||
e_managers_keys_ungrab();
|
e_managers_keys_ungrab();
|
||||||
e_bindings_key_add(bind.context, bind.key, bind.modifiers,
|
e_bindings_key_add(bind.context, bind.key, bind.modifiers,
|
||||||
bind.any_mod, bind.action, bind.params);
|
bind.any_mod, bind.action, bind.params);
|
||||||
|
@ -4259,7 +4267,7 @@ break;
|
||||||
if (e_theme_transition_find(s))
|
if (e_theme_transition_find(s))
|
||||||
{
|
{
|
||||||
E_FREE(e_config->transition_start);
|
E_FREE(e_config->transition_start);
|
||||||
e_config->transition_start = strdup(s);
|
if (s) e_config->transition_start = strdup(s);
|
||||||
SAVE;
|
SAVE;
|
||||||
}
|
}
|
||||||
END_STRING(s);
|
END_STRING(s);
|
||||||
|
@ -4303,7 +4311,7 @@ break;
|
||||||
if (e_theme_transition_find(s))
|
if (e_theme_transition_find(s))
|
||||||
{
|
{
|
||||||
E_FREE(e_config->transition_desk);
|
E_FREE(e_config->transition_desk);
|
||||||
e_config->transition_desk = strdup(s);
|
if (s) e_config->transition_desk = strdup(s);
|
||||||
SAVE;
|
SAVE;
|
||||||
}
|
}
|
||||||
END_STRING(s);
|
END_STRING(s);
|
||||||
|
@ -4347,7 +4355,7 @@ break;
|
||||||
if (e_theme_transition_find(s))
|
if (e_theme_transition_find(s))
|
||||||
{
|
{
|
||||||
E_FREE(e_config->transition_change);
|
E_FREE(e_config->transition_change);
|
||||||
e_config->transition_change = strdup(s);
|
if (s) e_config->transition_change = strdup(s);
|
||||||
SAVE;
|
SAVE;
|
||||||
}
|
}
|
||||||
END_STRING(s);
|
END_STRING(s);
|
||||||
|
@ -4556,7 +4564,7 @@ break;
|
||||||
#elif (TYPE == E_LIB_IN)
|
#elif (TYPE == E_LIB_IN)
|
||||||
STRING2(category, file, e_2str, HDL);
|
STRING2(category, file, e_2str, HDL);
|
||||||
RESPONSE(r, E_Response_Theme_Get);
|
RESPONSE(r, E_Response_Theme_Get);
|
||||||
r->file = strdup(file);
|
if (file) r->file = strdup(file);
|
||||||
r->category = strdup(category);
|
r->category = strdup(category);
|
||||||
END_RESPONSE(r, E_RESPONSE_THEME_GET);
|
END_RESPONSE(r, E_RESPONSE_THEME_GET);
|
||||||
END_STRING2(e_2str);
|
END_STRING2(e_2str);
|
||||||
|
@ -5502,7 +5510,7 @@ break;
|
||||||
#elif (TYPE == E_WM_IN)
|
#elif (TYPE == E_WM_IN)
|
||||||
STRING(s, HDL);
|
STRING(s, HDL);
|
||||||
E_FREE(e_config->input_method);
|
E_FREE(e_config->input_method);
|
||||||
e_config->input_method = strdup(s);
|
if (s) e_config->input_method = strdup(s);
|
||||||
if ((e_config->input_method) && (e_config->input_method[0] != 0))
|
if ((e_config->input_method) && (e_config->input_method[0] != 0))
|
||||||
e_intl_input_method_set(e_config->input_method);
|
e_intl_input_method_set(e_config->input_method);
|
||||||
else
|
else
|
||||||
|
@ -5815,12 +5823,12 @@ break;
|
||||||
eb = E_NEW(E_Config_Binding_Signal, 1);
|
eb = E_NEW(E_Config_Binding_Signal, 1);
|
||||||
e_config->signal_bindings = evas_list_append(e_config->signal_bindings, eb);
|
e_config->signal_bindings = evas_list_append(e_config->signal_bindings, eb);
|
||||||
eb->context = bind.context;
|
eb->context = bind.context;
|
||||||
eb->signal = strdup(bind.signal);
|
if (bind.signal) eb->signal = strdup(bind.signal);
|
||||||
eb->source = strdup(bind.source);
|
if (bind.source) eb->source = strdup(bind.source);
|
||||||
eb->modifiers = bind.modifiers;
|
eb->modifiers = bind.modifiers;
|
||||||
eb->any_mod = bind.any_mod;
|
eb->any_mod = bind.any_mod;
|
||||||
eb->action = strdup(bind.action);
|
if (bind.action) eb->action = strdup(bind.action);
|
||||||
eb->params = strdup(bind.params);
|
if (bind.params) eb->params = strdup(bind.params);
|
||||||
e_bindings_signal_add(bind.context, bind.signal, bind.source, bind.modifiers,
|
e_bindings_signal_add(bind.context, bind.signal, bind.source, bind.modifiers,
|
||||||
bind.any_mod, bind.action, bind.params);
|
bind.any_mod, bind.action, bind.params);
|
||||||
e_config_save_queue();
|
e_config_save_queue();
|
||||||
|
@ -6148,8 +6156,8 @@ break;
|
||||||
eb->z = bind.z;
|
eb->z = bind.z;
|
||||||
eb->modifiers = bind.modifiers;
|
eb->modifiers = bind.modifiers;
|
||||||
eb->any_mod = bind.any_mod;
|
eb->any_mod = bind.any_mod;
|
||||||
eb->action = strdup(bind.action);
|
if (bind.action) eb->action = strdup(bind.action);
|
||||||
eb->params = strdup(bind.params);
|
if (bind.params) eb->params = strdup(bind.params);
|
||||||
e_bindings_wheel_add(bind.context, bind.direction, bind.z, bind.modifiers,
|
e_bindings_wheel_add(bind.context, bind.direction, bind.z, bind.modifiers,
|
||||||
bind.any_mod, bind.action, bind.params);
|
bind.any_mod, bind.action, bind.params);
|
||||||
e_config_save_queue();
|
e_config_save_queue();
|
||||||
|
|
Loading…
Reference in New Issue