- Fix plugin.hh visibility attributes
- Improve option parsing - Strange SIGSEGV still happening (a different one, though) git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@736 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
3125f3d3cf
commit
8b1da4e1c7
8 changed files with 92 additions and 185 deletions
18
src/main.cc
18
src/main.cc
|
@ -24,11 +24,9 @@
|
|||
#include "main.hh"
|
||||
|
||||
#include "parse_opts.hh"
|
||||
#include "start_gui.hh"
|
||||
|
||||
#include "backend/plugin_manager.hh"
|
||||
|
||||
#include <glibmm/module.h>
|
||||
#include <glibmm/thread.h>
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -41,7 +39,6 @@
|
|||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
using namespace sgpem;
|
||||
using namespace std;
|
||||
using Glib::ustring;
|
||||
|
||||
|
@ -55,18 +52,7 @@ main(int argc, char* argv[])
|
|||
|
||||
// Parses options and prepares vector with
|
||||
// filenames of documents to be opened
|
||||
vector<string> filenames;
|
||||
{
|
||||
int a_count = argc;
|
||||
char** a_ptr = argv;
|
||||
parse_options(a_count, a_ptr);
|
||||
filenames.insert(filenames.begin(), a_ptr, a_ptr + a_count);
|
||||
}
|
||||
|
||||
// Initializes plugin system
|
||||
PluginManager::get_instance();
|
||||
|
||||
start_gui(argc, argv);
|
||||
parse_options(argc, argv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue