diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2018-12-09 19:04:42 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2018-12-09 19:04:42 +0000 |
| commit | 7bbad129a0c9c9f3a38b178557d68623bef03464 (patch) | |
| tree | 964e4f6ced0914ea706197645a7ca636ca60376c /src/actions/actions-base.cpp | |
| parent | fix, test, and document more Inkscape::URI methods (diff) | |
| download | inkscape-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.cpp | 6 |
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++ |
