diff options
| author | MenTaLguY <mental@rydia.net> | 2006-04-17 04:46:51 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-04-17 04:46:51 +0000 |
| commit | 805747f6b136ad2e89f5ca1020ca43506d2b5391 (patch) | |
| tree | beded9b49a5f2f5a3ac956ded5604cee5d61cd0c /src/draw-context.cpp | |
| parent | SP_DT_DOCUMENT -> sp_desktop_document (diff) | |
| download | inkscape-805747f6b136ad2e89f5ca1020ca43506d2b5391.tar.gz inkscape-805747f6b136ad2e89f5ca1020ca43506d2b5391.zip | |
Get rid of the SP_DT_* macros which do nothing more than provide additional, confusing, names for other functions. If shorter names are desired, the actual functions should be renamed -- or better, made into member functions.
(bzr r532)
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 0cb408293..d33a33f7b 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -150,7 +150,7 @@ sp_draw_context_setup(SPEventContext *ec) ((SPEventContextClass *) draw_parent_class)->setup(ec); } - dc->selection = SP_DT_SELECTION(dt); + dc->selection = sp_desktop_selection(dt); /* Connect signals to track selection changes */ dc->sel_changed_connection = dc->selection->connectChanged( @@ -161,13 +161,13 @@ sp_draw_context_setup(SPEventContext *ec) ); /* Create red bpath */ - dc->red_bpath = sp_canvas_bpath_new(SP_DT_SKETCH(ec->desktop), NULL); + dc->red_bpath = sp_canvas_bpath_new(sp_desktop_sketch(ec->desktop), NULL); sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(dc->red_bpath), dc->red_color, 1.0, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT); /* Create red curve */ dc->red_curve = sp_curve_new_sized(4); /* Create blue bpath */ - dc->blue_bpath = sp_canvas_bpath_new(SP_DT_SKETCH(ec->desktop), NULL); + dc->blue_bpath = sp_canvas_bpath_new(sp_desktop_sketch(ec->desktop), NULL); sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(dc->blue_bpath), dc->blue_color, 1.0, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT); /* Create blue curve */ dc->blue_curve = sp_curve_new_sized(8); @@ -218,7 +218,7 @@ sp_draw_context_root_handler(SPEventContext *ec, GdkEvent *event) case GDK_KEY_PRESS: switch (get_group0_keyval (&event->key)) { case GDK_Escape: - SP_DT_SELECTION(desktop)->clear(); + sp_desktop_selection(desktop)->clear(); ret = TRUE; break; case GDK_Tab: // Tab - cycle selection forward @@ -529,7 +529,7 @@ spdc_flush_white(SPDrawContext *dc, SPCurve *gc) : sp_desktop_dt2root_affine(SP_EVENT_CONTEXT_DESKTOP(dc)) )); SPDesktop *desktop = SP_EVENT_CONTEXT_DESKTOP(dc); - SPDocument *doc = SP_DT_DOCUMENT(desktop); + SPDocument *doc = sp_desktop_document(desktop); if ( c && !sp_curve_empty(c) ) { /* We actually have something to write */ |
