gimp r25181 - in trunk: . app/display



Author: neo
Date: Sun Mar 23 15:44:58 2008
New Revision: 25181
URL: http://svn.gnome.org/viewvc/gimp?rev=25181&view=rev

Log:
2008-03-23  Sven Neumann  <sven gimp org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_expose): return TRUE after calling
	gimp_display_shell_canvas_expose_image().



Modified:
   trunk/ChangeLog
   trunk/app/display/gimpdisplayshell-callbacks.c

Modified: trunk/app/display/gimpdisplayshell-callbacks.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-callbacks.c	(original)
+++ trunk/app/display/gimpdisplayshell-callbacks.c	Sun Mar 23 15:44:58 2008
@@ -353,13 +353,21 @@
   if (shell->display->image)
     {
       gimp_display_shell_canvas_expose_image (shell, eevent);
+
+      /* Return TRUE here to avoid redrawing the image when it gets the
+       * keyboard focus.
+       */
+      return TRUE;
     }
   else
     {
       gimp_display_shell_canvas_expose_drop_zone (shell, eevent);
-    }
 
-  return FALSE;
+      /* Return FALSE here so that the drag indicator is drawn around
+       * the empty canvas during DND operations.
+       */
+      return FALSE;
+    }
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]