- Pardon my italian, but "'affanculo" is the only thing that
crosses my mind seeing what was the correct fix. git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@738 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
933d814ddc
commit
483cf2815d
4 changed files with 20 additions and 13 deletions
|
@ -93,7 +93,7 @@ parse_options(int argc, char** argv)
|
|||
try
|
||||
{
|
||||
// Parse options, initialising the Gtk::Main at the same time
|
||||
Gtk::Main(argc, argv, context);
|
||||
Gtk::Main main_loop(argc, argv, context);
|
||||
|
||||
GlobalPreferences& prefs = GlobalPreferences::get_instance();
|
||||
|
||||
|
@ -118,11 +118,15 @@ parse_options(int argc, char** argv)
|
|||
throw Glib::OptionError(Glib::OptionError::FAILED, _("The `No-GUI' option isn't active yet."));
|
||||
|
||||
// FIXME : to be written!
|
||||
} else {
|
||||
if(fnames.begin() != fnames.end())
|
||||
start_gui(*fnames.begin());
|
||||
else
|
||||
start_gui("");
|
||||
}
|
||||
else
|
||||
{
|
||||
Gtk::Window* main_window;
|
||||
if(fnames.begin() != fnames.end())
|
||||
main_window = start_gui(*fnames.begin());
|
||||
else
|
||||
main_window = start_gui("");
|
||||
main_loop.run(*main_window);
|
||||
}
|
||||
} // ~ try
|
||||
catch(Glib::OptionError e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue