gimp r27368 - in trunk: . plug-ins/print



Author: neo
Date: Wed Oct 22 20:34:20 2008
New Revision: 27368
URL: http://svn.gnome.org/viewvc/gimp?rev=27368&view=rev

Log:
2008-10-22  Sven Neumann  <sven gimp org>

	* plug-ins/print/print-preview.c 
(print_preview_leave_notify_event):
	check the crossing mode and don't unset the "inside" flag when 
the
	event is caused by a pointer grab/ungrab.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/print/print-preview.c

Modified: trunk/plug-ins/print/print-preview.c
==============================================================================
--- trunk/plug-ins/print/print-preview.c	(original)
+++ trunk/plug-ins/print/print-preview.c	Wed Oct 22 20:34:20 2008
@@ -372,8 +372,7 @@
       if (preview->image_offset_x != offset_x ||
           preview->image_offset_y != offset_y)
         {
-          print_preview_set_image_offsets (preview,
-                                           offset_x, offset_y);
+          print_preview_set_image_offsets (preview, offset_x, offset_y);
 
           g_signal_emit (preview,
                          print_preview_signals[OFFSETS_CHANGED], 0,
@@ -397,7 +396,8 @@
 {
   PrintPreview *preview = PRINT_PREVIEW (widget);
 
-  print_preview_set_inside (preview, FALSE);
+  if (event->mode == GDK_CROSSING_NORMAL)
+    print_preview_set_inside (preview, FALSE);
 
   return FALSE;
 }
@@ -794,10 +794,12 @@
     case 3:
       format = CAIRO_FORMAT_RGB24;
       break;
+
     case 2:
     case 4:
       format = CAIRO_FORMAT_ARGB32;
       break;
+
     default:
       g_assert_not_reached ();
       break;



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