Renamed gimp_display_shell_scroll_private() to gimp_display_shell_scroll()
2008-08-10 Martin Nordholts <martinn@svn.gnome.org> * app/display/gimpdisplayshell-scroll.[ch]: Renamed gimp_display_shell_scroll_private() to gimp_display_shell_scroll() and keep it here. * app/display/gimpdisplayshell-private.h: Removed. * app/display/Makefile.am * app/display/gimpdisplayshell-scale.c * app/display/gimpdisplayshell-scroll.c * app/display/gimpdisplayshell-handlers.c * app/display/gimpdisplayshell-callbacks.c * app/display/gimpdisplayshell-autoscroll.c: Adapt. svn path=/trunk/; revision=26480
This commit is contained in:
committed by
Martin Nordholts
parent
65ff34a540
commit
4bbe4c81b8
@ -37,7 +37,6 @@
|
||||
#include "gimpdisplay-foreach.h"
|
||||
#include "gimpdisplayshell.h"
|
||||
#include "gimpdisplayshell-draw.h"
|
||||
#include "gimpdisplayshell-private.h"
|
||||
#include "gimpdisplayshell-scale.h"
|
||||
#include "gimpdisplayshell-scroll.h"
|
||||
|
||||
@ -70,15 +69,15 @@ gimp_display_shell_scroll_center_image_coordinate (GimpDisplayShell *shell
|
||||
offset_to_apply_x = scaled_image_x - shell->disp_width / 2 - shell->offset_x;
|
||||
offset_to_apply_y = scaled_image_y - shell->disp_height / 2 - shell->offset_y;
|
||||
|
||||
gimp_display_shell_scroll_private (shell,
|
||||
offset_to_apply_x,
|
||||
offset_to_apply_y);
|
||||
gimp_display_shell_scroll (shell,
|
||||
offset_to_apply_x,
|
||||
offset_to_apply_y);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_display_shell_scroll_private (GimpDisplayShell *shell,
|
||||
gint x_offset,
|
||||
gint y_offset)
|
||||
gimp_display_shell_scroll (GimpDisplayShell *shell,
|
||||
gint x_offset,
|
||||
gint y_offset)
|
||||
{
|
||||
gint old_x;
|
||||
gint old_y;
|
||||
@ -242,7 +241,7 @@ gimp_display_shell_scroll_center_image (GimpDisplayShell *shell,
|
||||
target_offset_y = (sh - shell->disp_height) / 2;
|
||||
}
|
||||
|
||||
/* Note that we can't use gimp_display_shell_scroll_private() here
|
||||
/* Note that we can't use gimp_display_shell_scroll() here
|
||||
* because that would expose the image twice, causing unwanted
|
||||
* flicker.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user