summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 2181b2814..f9a314f7e 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -172,7 +172,7 @@ void
inkscape_application_init (const gchar *argv0, gboolean use_gui)
{
if (!inkscape) {
- inkscape = new Inkscape::Application(argv0, use_gui);
+ new Inkscape::Application(argv0, use_gui);
} else {
g_assert_not_reached();
}
@@ -361,6 +361,11 @@ void Application::argv0(char const* argv)
_argv0 = g_strdup(argv);
}
+/* \brief Constructor for the application.
+ * Creates a new Inkscape::Application.
+ *
+ * \pre inkscape == NULL
+ */
Application::Application(const char* argv, bool use_gui) :
refCount(1),
@@ -383,6 +388,10 @@ Application::Application(const char* argv, bool use_gui) :
_argv0 = g_strdup(argv);
+ // \TODO: this belongs to inkscape_application_init but if it isn't here
+ // then the Filters and Extensions menus don't work.
+ inkscape = this;
+
/* Load the preferences and menus */
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
InkErrorHandler* handler = new InkErrorHandler(use_gui);