summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorAaron Spike <aaron@ekips.org>2007-03-12 04:31:44 +0000
committeracspike <acspike@users.sourceforge.net>2007-03-12 04:31:44 +0000
commit2fd8e755516c393a04c74378a6e347fcad6ca5de (patch)
tree1db3b5ec8dad1ead514018c75bac2dc40c41fa9f /src/selection-chemistry.cpp
parentsend verb ids into history and remove casting errors (diff)
downloadinkscape-2fd8e755516c393a04c74378a6e347fcad6ca5de.tar.gz
inkscape-2fd8e755516c393a04c74378a6e347fcad6ca5de.zip
move sp_document_done() out into verbs.cpp
(bzr r2616)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index ead154466..00ef48766 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -2895,10 +2895,8 @@ static void unhide(SPItem *item, SPDesktop *desktop) {
}
}
-static void process_all(void (*f)(SPItem *, SPDesktop *), SPDesktop *dt, unsigned int id, bool layer_only, char *label) {
+static void process_all(void (*f)(SPItem *, SPDesktop *), SPDesktop *dt, bool layer_only) {
if (!dt) return;
- SPDocument *doc = sp_desktop_document(dt);
- if (!doc) return;
SPObject *root;
if (layer_only) {
@@ -2908,24 +2906,22 @@ static void process_all(void (*f)(SPItem *, SPDesktop *), SPDesktop *dt, unsigne
}
itemtree_map(f, root, dt);
-
- sp_document_done(doc, id, label);
}
-void unlock_all(SPDesktop *dt, unsigned int id) {
- process_all(&unlock, dt, id, true, _("Unlock all objects in the current layer"));
+void unlock_all(SPDesktop *dt) {
+ process_all(&unlock, dt, true);
}
-void unlock_all_in_all_layers(SPDesktop *dt, unsigned int id) {
- process_all(&unlock, dt, id, false, _("Unlock all objects in all layers"));
+void unlock_all_in_all_layers(SPDesktop *dt) {
+ process_all(&unlock, dt, false);
}
-void unhide_all(SPDesktop *dt, unsigned int id) {
- process_all(&unhide, dt, id, true, _("Unhide all objects in the current layer"));
+void unhide_all(SPDesktop *dt) {
+ process_all(&unhide, dt, true);
}
-void unhide_all_in_all_layers(SPDesktop *dt, unsigned int id) {
- process_all(&unhide, dt, id, false, _("Unhide all objects in all layers"));
+void unhide_all_in_all_layers(SPDesktop *dt) {
+ process_all(&unhide, dt, false);
}
/*