diff --git a/ChangeLog b/ChangeLog index b225568f74..35dc82769a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-20 Martin Nordholts + + * app/display/gimpdisplayshell-scroll.c: Use a constant for the + minimum step amount for scrollbars. + 2008-08-20 Michael Natterer * app/widgets/gimpuimanager.c: reindent prototypes. diff --git a/app/display/gimpdisplayshell-scroll.c b/app/display/gimpdisplayshell-scroll.c index 752eb5c538..de1f683d93 100644 --- a/app/display/gimpdisplayshell-scroll.c +++ b/app/display/gimpdisplayshell-scroll.c @@ -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 @@ gimp_display_shell_scroll_setup_hscrollbar (GimpDisplayShell *shell, 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 @@ gimp_display_shell_scroll_setup_vscrollbar (GimpDisplayShell *shell, 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); }