summaryrefslogtreecommitdiffstats
path: root/src/spray-context.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2013-03-19 02:26:40 +0000
committer~suv <suv-sf@users.sourceforge.net>2013-03-19 02:26:40 +0000
commit5c8a7b8df6203791610487d2435646f86a0eed96 (patch)
tree3bf6c7a52f27978f84b267482bb69389051c4085 /src/spray-context.cpp
parentchanges_2013_03_18c.patch (diff)
parentDrop remaining unused functions (diff)
downloadinkscape-5c8a7b8df6203791610487d2435646f86a0eed96.tar.gz
inkscape-5c8a7b8df6203791610487d2435646f86a0eed96.zip
merge from trunk (r12224)
(bzr r11668.1.60)
Diffstat (limited to 'src/spray-context.cpp')
-rw-r--r--src/spray-context.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/spray-context.cpp b/src/spray-context.cpp
index 694e3a500..6a5684891 100644
--- a/src/spray-context.cpp
+++ b/src/spray-context.cpp
@@ -610,19 +610,6 @@ static void sp_spray_switch_mode(SPSprayContext *tc, gint mode, bool with_shift)
sp_spray_update_cursor(tc, with_shift);
}
-static void sp_spray_switch_mode_temporarily(SPSprayContext *tc, gint mode, bool with_shift)
-{
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- // Juggling about so that prefs have the old value but tc->mode and the button show new mode:
- gint now_mode = prefs->getInt("/tools/spray/mode", 0);
- SP_EVENT_CONTEXT(tc)->desktop->setToolboxSelectOneValue("spray_tool_mode", mode);
- // button has changed prefs, restore
- prefs->setInt("/tools/spray/mode", now_mode);
- // changing prefs changed tc->mode, restore back :)
- tc->mode = mode;
- sp_spray_update_cursor(tc, with_shift);
-}
-
gint sp_spray_context_root_handler(SPEventContext *event_context, GdkEvent *event)
{
SPSprayContext *tc = SP_SPRAY_CONTEXT(event_context);