medit_main(), for easier profiling

master
Yevgen Muntyan 2008-08-31 09:21:02 -05:00
parent 5c0af5e063
commit fecf057047
1 changed files with 11 additions and 2 deletions

View File

@ -284,8 +284,8 @@ project_mode (const char *file)
moo_plugin_set_enabled (plugin, TRUE); moo_plugin_set_enabled (plugin, TRUE);
} }
int static int
main (int argc, char *argv[]) medit_main (int argc, char *argv[])
{ {
MooApp *app = NULL; MooApp *app = NULL;
MooEditor *editor; MooEditor *editor;
@ -310,6 +310,10 @@ main (int argc, char *argv[])
gdk_window_set_debug_updates (TRUE); gdk_window_set_debug_updates (TRUE);
#endif #endif
#if 0
g_idle_add_full (G_PRIORITY_HIGH, (GSourceFunc) exit, NULL, NULL);
#endif
if (medit_opts.new_app || medit_opts.project_mode) if (medit_opts.new_app || medit_opts.project_mode)
new_instance = TRUE; new_instance = TRUE;
@ -419,6 +423,11 @@ main (int argc, char *argv[])
return retval; return retval;
} }
int
main (int argc, char *argv[])
{
return medit_main (argc, argv);
}
#if defined(__WIN32__) && !defined(__GNUC__) #if defined(__WIN32__) && !defined(__GNUC__)