Code

r11451@tres: ted | 2006-04-17 22:21:33 -0700
[inkscape.git] / src / star-context.cpp
index f796f77a944d32b224f6935d52101264e78c49b4..6e10a03fad6e8af044f9d7efa0931d47225961f0 100644 (file)
@@ -187,7 +187,6 @@ sp_star_context_selection_changed (Inkscape::Selection * selection, gpointer dat
             ec->shape_repr = shape_repr;
             Inkscape::GC::anchor(shape_repr);
             sp_repr_add_listener (shape_repr, &ec_shape_repr_events, ec);
-            sp_repr_synthesize_events (shape_repr, &ec_shape_repr_events, ec);
         }
     }
 }
@@ -206,7 +205,7 @@ sp_star_context_setup (SPEventContext *ec)
     sp_event_context_read (ec, "rounded");
     sp_event_context_read (ec, "randomized");
 
-    Inkscape::Selection *selection = SP_DT_SELECTION(ec->desktop);
+    Inkscape::Selection *selection = sp_desktop_selection(ec->desktop);
 
     SPItem *item = selection->singleItem();
         if (item) {
@@ -216,7 +215,6 @@ sp_star_context_setup (SPEventContext *ec)
                 ec->shape_repr = shape_repr;
                 Inkscape::GC::anchor(shape_repr);
                 sp_repr_add_listener (shape_repr, &ec_shape_repr_events, ec);
-                sp_repr_synthesize_events (shape_repr, &ec_shape_repr_events, ec);
             }
         }
 
@@ -261,7 +259,7 @@ static gint sp_star_context_root_handler(SPEventContext *event_context, GdkEvent
     static gboolean dragging;
 
     SPDesktop *desktop = event_context->desktop;
-    Inkscape::Selection *selection = SP_DT_SELECTION (desktop);
+    Inkscape::Selection *selection = sp_desktop_selection (desktop);
 
     SPStarContext *sc = SP_STAR_CONTEXT (event_context);
 
@@ -360,7 +358,7 @@ static gint sp_star_context_root_handler(SPEventContext *event_context, GdkEvent
             }
             break;
         case GDK_Escape:
-            SP_DT_SELECTION(desktop)->clear();
+            sp_desktop_selection(desktop)->clear();
             //TODO: make dragging escapable by Esc
         default:
             break;
@@ -465,8 +463,8 @@ sp_star_finish (SPStarContext * sc)
 
         object->updateRepr(NULL, SP_OBJECT_WRITE_EXT);
 
-        SP_DT_SELECTION(desktop)->set(sc->item);
-        sp_document_done(SP_DT_DOCUMENT(desktop));
+        sp_desktop_selection(desktop)->set(sc->item);
+        sp_document_done(sp_desktop_document(desktop));
 
         sc->item = NULL;
     }