X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fmain.c;h=6bc9e9686c8bab95f6b772cda4219827dc0f24f4;hb=refs%2Fbuilds%2F20131105032650%2Fpspp;hp=eb44e813b6a78b8016bfa6d55a1094102cd89f3a;hpb=681f6120a7998b83ccd439068d8c4090de10b9b5;p=pspp diff --git a/src/ui/gui/main.c b/src/ui/gui/main.c index eb44e813b6..6bc9e9686c 100644 --- a/src/ui/gui/main.c +++ b/src/ui/gui/main.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2004, 2005, 2006, 2010, 2011, 2012 Free Software Foundation + Copyright (C) 2004, 2005, 2006, 2010, 2011, 2012, 2013 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -113,8 +113,8 @@ Informative output:\n\ -h, --help display this help and exit\n\ -V, --version output version information and exit\n\ \n\ -A non-option argument is interpreted as a .sav file, a .por file or a syntax\n\ -file to load.\n"), +A non-option argument is interpreted as a data file in .sav or .zsav or .por\n\ +format or a syntax file to load.\n"), program_name, gtk_help, inc_path); free (inc_path); @@ -199,12 +199,14 @@ print_startup_time (gpointer data) return FALSE; } +/* static gboolean quit_one_loop (gpointer data) { gtk_main_quit (); return FALSE; } +*/ struct initialisation_parameters { @@ -329,13 +331,14 @@ main (int argc, char *argv[]) init_p.splash_window = create_splash_window (); init_p.data_file = optind < argc ? argv[optind] : NULL; - if ( show_splash ) - gtk_widget_show (init_p.splash_window); + // if ( show_splash ) + // gtk_widget_show (init_p.splash_window); - g_idle_add (quit_one_loop, 0); + // g_idle_add (quit_one_loop, 0); - gtk_quit_add (0, run_inner_loop, &init_p); - gtk_main (); + // gtk_quit_add (0, run_inner_loop, &init_p); + run_inner_loop (&init_p); + // gtk_main (); return 0; }