Don't use popup dialogs for help

This commit is contained in:
TingPing 2013-07-01 14:28:26 -04:00
parent 5de5d6d00b
commit 932bfa3482
1 changed files with 12 additions and 0 deletions

View File

@ -218,10 +218,14 @@ fe_args (int argc, char *argv[])
if (arg_show_version) if (arg_show_version)
{ {
#ifdef WIN32
buffer = g_strdup_printf (DISPLAY_NAME " " PACKAGE_VERSION "\n"); buffer = g_strdup_printf (DISPLAY_NAME " " PACKAGE_VERSION "\n");
gtk_init (&argc, &argv); gtk_init (&argc, &argv);
create_msg_dialog ("Version Information", buffer); create_msg_dialog ("Version Information", buffer);
g_free (buffer); g_free (buffer);
#else
printf (PACKAGE_NAME" "PACKAGE_VERSION"\n");
#endif
return 0; return 0;
} }
@ -229,8 +233,12 @@ fe_args (int argc, char *argv[])
if (arg_show_autoload) if (arg_show_autoload)
{ {
buffer = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "addons\n", get_xdir ()); buffer = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "addons\n", get_xdir ());
#ifdef WIN32
gtk_init (&argc, &argv); gtk_init (&argc, &argv);
create_msg_dialog ("Plugin/Script Auto-load Directory", buffer); create_msg_dialog ("Plugin/Script Auto-load Directory", buffer);
#else
printf (buffer);
#endif
g_free (buffer); g_free (buffer);
return 0; return 0;
@ -239,8 +247,12 @@ fe_args (int argc, char *argv[])
if (arg_show_config) if (arg_show_config)
{ {
buffer = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "\n", get_xdir ()); buffer = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "\n", get_xdir ());
#ifdef WIN32
gtk_init (&argc, &argv); gtk_init (&argc, &argv);
create_msg_dialog ("User Config Directory", buffer); create_msg_dialog ("User Config Directory", buffer);
#else
printf (buffer);
#endif
g_free (buffer); g_free (buffer);
return 0; return 0;