Put functions to center the image in the display shell where they belong,
2008-08-10 Martin Nordholts <martinn@svn.gnome.org> Put functions to center the image in the display shell where they belong, and give them proper names. * app/display/gimpdisplayshell-scale.[ch]: Get rid of functions and use the new names. * app/display/gimpdisplayshell-scroll.[ch]: Put the functions here and call them gimp_display_shell_scroll_center_image() and gimp_display_shell_scroll_center_image_on_next_size_allocate(). * app/display/gimpdisplayshell.c: * app/display/gimpdisplayshell-handlers.c: Use the new names. svn path=/trunk/; revision=26470
This commit is contained in:
committed by
Martin Nordholts
parent
f05da183c7
commit
a736df49e2
@ -26,6 +26,13 @@ void gimp_display_shell_center_around_image_coordinate (GimpDisplayShell
|
||||
|
||||
void gimp_display_shell_scroll_clamp_offsets (GimpDisplayShell *shell);
|
||||
|
||||
void gimp_display_shell_scroll_center_image (GimpDisplayShell *shell,
|
||||
gboolean horizontally,
|
||||
gboolean vertically);
|
||||
|
||||
void gimp_display_shell_scroll_center_image_on_next_size_allocate
|
||||
(GimpDisplayShell *shell);
|
||||
|
||||
void gimp_display_shell_get_scaled_viewport (const GimpDisplayShell *shell,
|
||||
gint *x,
|
||||
gint *y,
|
||||
|
||||
Reference in New Issue
Block a user