From 181d1e66302e2a6296f228a74e4840b797b5eba7 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 14 Aug 2008 21:33:11 +0000 Subject: Get rid of a whole bunch of further instances of SP_ACTIVE_DESKTOP (where the desktop is readily available in the calling function) (bzr r6629) --- src/rect-context.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/rect-context.cpp') diff --git a/src/rect-context.cpp b/src/rect-context.cpp index e8d7dc7dd..999aa03b8 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -15,7 +15,6 @@ */ #include "config.h" -#include "inkscape.h" #include #include @@ -403,23 +402,10 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent } break; - case GDK_T: - { - Inkscape::Selection *selection = sp_desktop_selection (inkscape_active_desktop()); - SPItem *item = selection->singleItem(); - if (item && SP_IS_RECT (item)) { - g_print ("Scaling transformation matrix\n"); - SP_RECT (item)->transform = NR::Matrix(NR::scale(1.25, 1.5)); - SP_OBJECT (item)->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); - } - ret = TRUE; - } - break; - case GDK_g: case GDK_G: if (MOD__SHIFT_ONLY) { - sp_selection_to_guides(); + sp_selection_to_guides(desktop); ret = true; } break; -- cgit v1.2.3