gimp r26685 - in trunk: . app/display



Author: martinn
Date: Wed Aug 20 19:46:58 2008
New Revision: 26685
URL: http://svn.gnome.org/viewvc/gimp?rev=26685&view=rev

Log:
2008-08-20  Martin Nordholts  <martinn svn gnome org>

	* app/display/gimpdisplayshell-scroll.c: Use a constant for the
	minimum step amount for scrollbars.


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

Modified: trunk/app/display/gimpdisplayshell-scroll.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-scroll.c	(original)
+++ trunk/app/display/gimpdisplayshell-scroll.c	Wed Aug 20 19:46:58 2008
@@ -41,7 +41,8 @@
 #include "gimpdisplayshell-scroll.h"
 
 
-#define OVERPAN_FACTOR 0.5
+#define OVERPAN_FACTOR     0.5
+#define MINIUM_STEP_AMOUNT 1.0
 
 
 typedef struct
@@ -532,7 +533,7 @@
                                    sw + (shell->disp_width - sw) / 2);
     }
 
-  shell->hsbdata->step_increment = MAX (shell->scale_x, 1.0);
+  shell->hsbdata->step_increment = MAX (shell->scale_x, MINIUM_STEP_AMOUNT);
 }
 
 /**
@@ -574,5 +575,5 @@
                                    sh + (shell->disp_height - sh) / 2);
     }
 
-  shell->vsbdata->step_increment = MAX (shell->scale_y, 1.0);
+  shell->vsbdata->step_increment = MAX (shell->scale_y, MINIUM_STEP_AMOUNT);
 }



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