diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-10-12 20:06:35 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-10-12 20:06:35 +0000 |
| commit | be8029ed57d68a7b8e94cfc5b82984a8b1c75e55 (patch) | |
| tree | 91357349657bc80ea1c8755933c11454244f4c20 /src/main.cpp | |
| parent | Remove the misfeature of retracting handles when the cusp node button (diff) | |
| download | inkscape-be8029ed57d68a7b8e94cfc5b82984a8b1c75e55.tar.gz inkscape-be8029ed57d68a7b8e94cfc5b82984a8b1c75e55.zip | |
Remove the failed and unused "new gui" stuff.
(bzr r9828)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index 78b66d847..605b0f677 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -114,7 +114,6 @@ using Inkscape::Extension::Internal::PrintWin32; #define bind_textdomain_codeset(p,c) #endif -#include "application/application.h" #include "main-cmdlineact.h" #include "widgets/icon.h" #include "ui/widget/panel.h" @@ -208,7 +207,6 @@ static gboolean sp_query_width = FALSE; static gboolean sp_query_height = FALSE; static gboolean sp_query_all = FALSE; static gchar *sp_query_id = NULL; -static int sp_new_gui = FALSE; static gboolean sp_shell = FALSE; static gboolean sp_vacuum_defs = FALSE; @@ -583,7 +581,7 @@ static void set_extensions_env() * architectures it might be called by something else. */ int -main(int argc, char **argv) +main(int argc, const char **argv) { #ifdef HAVE_FPSETMASK /* This is inherited from Sodipodi code, where it was in #ifdef __FreeBSD__. It's probably @@ -713,10 +711,15 @@ main(int argc, char **argv) } #endif // WIN32 - /// \todo Should this be a static object (see inkscape.cpp)? - Inkscape::NSApplication::Application app(argc, argv, use_gui, sp_new_gui); + int retcode; - return app.run(); + if (use_gui) { + retcode = sp_main_gui(argc, argv); + } else { + retcode = sp_main_console(argc, argv); + } + + return retcode; } |
