The following change is conceptually based on a patch by Alexia Death and
2008-07-12 Martin Nordholts <martinn@svn.gnome.org> The following change is conceptually based on a patch by Alexia Death and implements the core functionality for bug #362915. * app/display/gimpdisplayshell-scroll.[ch] (gimp_display_shell_scroll_clamp_offsets): Clamp the offsets in such a way that allows to scroll beyond the image border. (gimp_display_shell_setup_hscrollbar_with_value) (gimp_display_shell_setup_vscrollbar_with_value): Put common scrollbar range setup code here. * app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale_setup): Use above helper functions for setting up scrollbar range. * app/display/gimpdisplayshell-callbacks.c: Handle adjustment of the scrollbar range when they are about to change value. * app/display/gimpdisplayshell.c: Always keep the scrollbar steppers sensitive to user input. svn path=/trunk/; revision=26166
This commit is contained in:
committed by
Martin Nordholts
parent
fb32ff3efd
commit
4aeaa83f9e
@ -50,5 +50,10 @@ void gimp_display_shell_get_render_start_offset (const GimpDispla
|
||||
gint *offset_x,
|
||||
gint *offset_y);
|
||||
|
||||
void gimp_display_shell_setup_hscrollbar_with_value (GimpDisplayShell *shell,
|
||||
gdouble value);
|
||||
void gimp_display_shell_setup_vscrollbar_with_value (GimpDisplayShell *shell,
|
||||
gdouble value);
|
||||
|
||||
|
||||
#endif /* __GIMP_DISPLAY_SHELL_SCROLL_H__ */
|
||||
|
||||
Reference in New Issue
Block a user