summaryrefslogtreecommitdiffstats
path: root/src/actions/actions-selection.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-selection.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-selection.cpp')
-rw-r--r--src/actions/actions-selection.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/actions/actions-selection.cpp b/src/actions/actions-selection.cpp
index 5687ebdd7..7a46f5398 100644
--- a/src/actions/actions-selection.cpp
+++ b/src/actions/actions-selection.cpp
@@ -100,8 +100,9 @@ select_all(InkscapeApplication* app)
std::cerr << "select_all: Not implemented!" << std::endl;
}
+template<class T>
void
-add_actions_selection(InkscapeApplication* app)
+add_actions_selection(ConcreteInkscapeApplication<T>* app)
{
app->add_action( "select-clear", sigc::bind<InkscapeApplication*>(sigc::ptr_fun(&select_clear), app) );
app->add_action_radio_string( "select", sigc::bind<InkscapeApplication*>(sigc::ptr_fun(&select_via_id), app), "null"); // Backwards compatible.
@@ -111,6 +112,10 @@ add_actions_selection(InkscapeApplication* app)
app->add_action_radio_string( "select-via-selector",sigc::bind<InkscapeApplication*>(sigc::ptr_fun(&select_via_selector), app), "null");
}
+template void add_actions_selection(ConcreteInkscapeApplication<Gio::Application>* app);
+template void add_actions_selection(ConcreteInkscapeApplication<Gtk::Application>* app);
+
+