summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-06-26 02:42:29 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-06-26 02:42:29 +0000
commit6d9d6664fc97fd26a4f5818ba8514d9aece0f854 (patch)
tree0a47870e241a92cf7e0062472b465ab1569d72c7 /src/inkscape.cpp
parent3. remove dead code, refactor existing code. Connect overlooked signals. (diff)
downloadinkscape-6d9d6664fc97fd26a4f5818ba8514d9aece0f854.tar.gz
inkscape-6d9d6664fc97fd26a4f5818ba8514d9aece0f854.zip
Fix filters/extensions menus not populating
(bzr r13341.5.4)
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);