Use a constant for the minimum step amount for scrollbars.
2008-08-20 Martin Nordholts <martinn@svn.gnome.org> * app/display/gimpdisplayshell-scroll.c: Use a constant for the minimum step amount for scrollbars. svn path=/trunk/; revision=26685
This commit is contained in:

committed by
Martin Nordholts

parent
8ea6e59970
commit
ec0849dce8
@ -1,3 +1,8 @@
|
||||
2008-08-20 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/display/gimpdisplayshell-scroll.c: Use a constant for the
|
||||
minimum step amount for scrollbars.
|
||||
|
||||
2008-08-20 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpuimanager.c: reindent prototypes.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user