Code

forced redraw of canvas upon completion of zooming or upon starting rubber band selec...
authorjohncoswell <johncoswell@users.sourceforge.net>
Sun, 23 Jul 2006 18:43:31 +0000 (18:43 +0000)
committerjohncoswell <johncoswell@users.sourceforge.net>
Sun, 23 Jul 2006 18:43:31 +0000 (18:43 +0000)
around event starvation issue at high zoom levels

ChangeLog
src/event-context.cpp
src/node-context.cpp
src/verbs.cpp

index e88f0d647db3b203443cb8db03db84e8be19e5e6..7c9c33f969acf885fcdf3696f98e3fe7fa352d60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-07-23  John Bintz  <jcoswell@coswellproductions.org>
+
+  * src/verbs.cpp, src/event-context.cpp, src/node-context.cpp:
+
+    forced redraw of canvas upon completion of zooming or upon
+    starting rubber band selection events to work around event
+    starvation issue at high zoom levels
+
 2006-07-23  MenTaLguY  <mental@rydia.net>
 
   * src/widgets/paint-selector.cpp:
 
 2006-07-23  John Bintz  <jcoswell@coswellproductions.org>
 
-       * src/desktop.cpp, src/desktop.h
+       * src/desktop.cpp, src/desktop.h:
 
          added SPDesktop::updateNow()
 
-       * src/event-context.cpp, src/select-context.cpp, src/node-context.cpp
+       * src/event-context.cpp, src/select-context.cpp, src/node-context.cpp:
 
          forced redraw of canvas upon completion of selection or panning
          to work around event starvation issue at high zoom levels
index 92dc711cf0f1c897181ace9a6339379690fa1cf3..8bda4b6c4255e335bd06feac01a38ce484188f23 100644 (file)
@@ -460,6 +460,7 @@ static gint sp_event_context_private_root_handler(SPEventContext *event_context,
                 panning = 0;
                 sp_canvas_item_ungrab(SP_CANVAS_ITEM(desktop->acetate),
                                       event->button.time);
+                desktop->updateNow();
                 ret = TRUE;
             } else if (zoom_rb == event->button.button) {
                 zoom_rb = 0;
index 8f8a48bf7718f9ddf06a90ed3af9590be447af76..f213b58aaa88869cc1c87d6bf4e7cce81ad88d6b 100644 (file)
@@ -548,6 +548,7 @@ sp_node_context_root_handler(SPEventContext *event_context, GdkEvent *event)
                                          event->button.y);
                 NR::Point const button_dt(desktop->w2d(button_w));
                 Inkscape::Rubberband::get()->start(desktop, button_dt);
+                desktop->updateNow();
                 ret = TRUE;
             }
             break;
index 0a22cc1081ee988b4a30d53856de589332c29f9e..c70e62fe220e04af68536e03aa139cd15922a064 100644 (file)
@@ -1536,6 +1536,8 @@ ZoomVerb::perform(SPAction *action, void *data, void *pdata)
         default:
             break;
     }
+    
+    dt->updateNow();
 
 } // end of sp_verb_action_zoom_perform()