eappp tool robustness

SVN revision: 14690
This commit is contained in:
Carsten Haitzler 2005-05-10 03:15:07 +00:00
parent 2afa1e7e30
commit 66fa6c445f
2 changed files with 13 additions and 6 deletions

View File

@ -135,7 +135,7 @@ e_config_init(void)
"data by default for usable functionality that your old\n"
"configuration simply lacks. This new set of defaults will fix\n"
"that by adding it in. You can re-configure things now to your\n"
"liking. Sorry for the hiccup in your confiugration.\n");
"liking. Sorry for the hiccup in your configuration.\n");
}
else if (e_config->config_version > E_CONFIG_FILE_VERSION)
{
@ -632,6 +632,7 @@ e_config_init(void)
}
e_config_save_queue();
}
// e_config->evas_engine_container = E_EVAS_ENGINE_GL_X11;
E_CONFIG_LIMIT(e_config->menus_scroll_speed, 1.0, 20000.0);
E_CONFIG_LIMIT(e_config->menus_fast_mouse_move_thresthold, 1.0, 2000.0);

View File

@ -72,11 +72,6 @@ main(int argc, char **argv)
i++;
set_win_class = argv[i];
}
else if ((!strcmp(argv[i], "-set-win-class")) && (i < (argc - 1)))
{
i++;
set_win_class = argv[i];
}
else if ((!strcmp(argv[i], "-set-startup-notify")) && (i < (argc - 1)))
{
i++;
@ -95,6 +90,8 @@ main(int argc, char **argv)
del_exe = 1;
del_win_name = 1;
del_win_class = 1;
del_startup_notify = 1;
del_wait_exit = 1;
}
else if ((!strcmp(argv[i], "-del-name")))
{
@ -145,6 +142,15 @@ main(int argc, char **argv)
_e_help();
exit(0);
}
if ((!set_name) && (!set_generic) && (!set_comment) && (!set_exe) &&
(!set_win_name) && (!set_win_class) && (!set_startup_notify) &&
(!set_wait_exit) && (!del_name) && (!del_generic) && (!del_comment) &&
(!del_exe) && (!del_win_name) && (!del_win_class) &&
(!del_startup_notify) && (!del_wait_exit))
{
printf("ERROR: nothing to do!\n");
exit(0);
}
eet_init();
ef = eet_open(file, EET_FILE_MODE_READ_WRITE);
if (!ef)