summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-14 21:33:11 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-14 21:33:11 +0000
commit181d1e66302e2a6296f228a74e4840b797b5eba7 (patch)
tree0315e36d536286e813d19018f47eec191496948e /src/rect-context.cpp
parentRemove further instances of SP_ACTIVE_DESKTOP (diff)
downloadinkscape-181d1e66302e2a6296f228a74e4840b797b5eba7.tar.gz
inkscape-181d1e66302e2a6296f228a74e4840b797b5eba7.zip
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)
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp16
1 files changed, 1 insertions, 15 deletions
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 <gdk/gdkkeysyms.h>
#include <cstring>
@@ -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;