summaryrefslogtreecommitdiffstats
path: root/src/extension/execution-env.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-06-01 21:47:04 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-06-01 21:47:04 +0000
commit6c85e7bc3b136ad5f831a4c289e04fdbe7451297 (patch)
treea026eaf58deb09da7b04db6a266dfb7516f21c9a /src/extension/execution-env.cpp
parentopening kaleidscope (diff)
parentMark user-visible messages for translation (diff)
downloadinkscape-6c85e7bc3b136ad5f831a4c289e04fdbe7451297.tar.gz
inkscape-6c85e7bc3b136ad5f831a4c289e04fdbe7451297.zip
update to trunk
(bzr r13708.1.29)
Diffstat (limited to 'src/extension/execution-env.cpp')
-rw-r--r--src/extension/execution-env.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp
index 13b8d60c4..29c2b5537 100644
--- a/src/extension/execution-env.cpp
+++ b/src/extension/execution-env.cpp
@@ -14,10 +14,6 @@
# include <config.h>
#endif
-#if GLIBMM_DISABLE_DEPRECATED && HAVE_GLIBMM_THREADS_H
-#include <glibmm/threads.h>
-#endif
-
#include "gtkmm/messagedialog.h"
#include "execution-env.h"
@@ -64,14 +60,12 @@ ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Imp
sp_namedview_document_from_window(desktop);
if (desktop != NULL) {
- Inkscape::Util::GSListConstIterator<SPItem *> selected =
- desktop->getSelection()->itemList();
- while ( selected != NULL ) {
+ std::vector<SPItem*> selected = desktop->getSelection()->itemList();
+ for(std::vector<SPItem*>::const_iterator x = selected.begin(); x != selected.end(); x++){
Glib::ustring selected_id;
- selected_id = (*selected)->getId();
+ selected_id = (*x)->getId();
_selected.insert(_selected.end(), selected_id);
//std::cout << "Selected: " << selected_id << std::endl;
- ++selected;
}
}