summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9eeb15a)
raw | patch | inline | side by side (parent: 9eeb15a)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 13 Sep 2008 21:29:39 +0000 (21:29 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 13 Sep 2008 21:29:39 +0000 (21:29 +0000) |
src/node-context.cpp | patch | blob | history |
diff --git a/src/node-context.cpp b/src/node-context.cpp
index 9f026c3f24030e6fa6009846c60645b1eb58057c..17243b1b27b7296389a340dab7f9f016e7eb3068 100644 (file)
--- a/src/node-context.cpp
+++ b/src/node-context.cpp
static void
sp_node_context_flash_path(SPEventContext *event_context, SPItem *item, guint timeout) {
- g_print ("-----> sp_node_context_flash_path(): TODO: generate the helper path!!\n");
SPNodeContext *nc = SP_NODE_CONTEXT(event_context);
nc->remove_flash_counter = 3; // for some reason root_handler is called twice after each item_handler...
@@ -190,8 +189,14 @@ sp_node_context_flash_path(SPEventContext *event_context, SPItem *item, guint ti
nc->flash_tempitem = NULL;
}
+ SPCanvasItem *canvasitem = NULL;
if (SP_IS_PATH(item)) {
- SPCanvasItem *canvasitem = sp_nodepath_helperpath_from_path(desktop, SP_PATH(item));
+ canvasitem = sp_nodepath_helperpath_from_path(desktop, SP_PATH(item));
+ } else {
+ g_print ("-----> sp_node_context_flash_path(): TODO: generate the helper path!!\n");
+ }
+
+ if (canvasitem) {
nc->flash_tempitem = desktop->add_temporary_canvasitem (canvasitem, timeout);
}
}