summaryrefslogtreecommitdiffstats
path: root/src/actions/actions-base.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-12-09 19:04:42 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-12-09 19:04:42 +0000
commit7bbad129a0c9c9f3a38b178557d68623bef03464 (patch)
tree964e4f6ced0914ea706197645a7ca636ca60376c /src/actions/actions-base.cpp
parentfix, test, and document more Inkscape::URI methods (diff)
downloadinkscape-7bbad129a0c9c9f3a38b178557d68623bef03464.tar.gz
inkscape-7bbad129a0c9c9f3a38b178557d68623bef03464.zip
Gtk/Gio templating of main inkscape application class to allow commandline usage when graphic server is not available
Diffstat (limited to 'src/actions/actions-base.cpp')
-rw-r--r--src/actions/actions-base.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actions/actions-base.cpp b/src/actions/actions-base.cpp
index b24602ca7..252eb956f 100644
--- a/src/actions/actions-base.cpp
+++ b/src/actions/actions-base.cpp
@@ -201,8 +201,9 @@ vacuum_defs(InkscapeApplication* app)
document->vacuumDocument();
}
+template<class T>
void
-add_actions_base(InkscapeApplication* app)
+add_actions_base(ConcreteInkscapeApplication<T>* app)
{
// Note: "radio" actions are just an easy way to set type without using templating.
app->add_action("inkscape-version", sigc::ptr_fun(&print_inkscape_version ));
@@ -224,6 +225,9 @@ add_actions_base(InkscapeApplication* app)
}
+template void add_actions_base(ConcreteInkscapeApplication<Gio::Application>* app);
+template void add_actions_base(ConcreteInkscapeApplication<Gtk::Application>* app);
+
/*
Local Variables:
mode:c++