app: remove gimp_display_shell_update_scrollbars_and_rulers()

and move its two statements to its two callers.
This commit is contained in:
Michael Natterer
2013-04-18 18:45:55 +02:00
parent 0add37a6cc
commit afddcce4e5
3 changed files with 5 additions and 17 deletions

View File

@ -85,20 +85,6 @@ static void gimp_display_shell_scale_get_zoom_focus (GimpDisplayShell *shel
/* public functions */
/**
* gimp_display_shell_update_scrollbars_and_rulers:
* @shell: the #GimpDisplayShell
*
**/
void
gimp_display_shell_update_scrollbars_and_rulers (GimpDisplayShell *shell)
{
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
gimp_display_shell_scale_update_scrollbars (shell);
gimp_display_shell_scale_update_rulers (shell);
}
/**
* gimp_display_shell_scale_update_scrollbars:
* @shell:

View File

@ -19,7 +19,6 @@
#define __GIMP_DISPLAY_SHELL_SCALE_H__
void gimp_display_shell_update_scrollbars_and_rulers (GimpDisplayShell *shell);
void gimp_display_shell_scale_update_scrollbars (GimpDisplayShell *shell);
void gimp_display_shell_scale_update_rulers (GimpDisplayShell *shell);

View File

@ -124,7 +124,8 @@ gimp_display_shell_scroll (GimpDisplayShell *shell,
-x_offset, -y_offset);
/* Update scrollbars and rulers */
gimp_display_shell_update_scrollbars_and_rulers (shell);
gimp_display_shell_scale_update_scrollbars (shell);
gimp_display_shell_scale_update_rulers (shell);
gimp_display_shell_resume (shell);
@ -258,7 +259,9 @@ void
gimp_display_shell_scroll_clamp_and_update (GimpDisplayShell *shell)
{
gimp_display_shell_scroll_clamp_offsets (shell);
gimp_display_shell_update_scrollbars_and_rulers (shell);
gimp_display_shell_scale_update_scrollbars (shell);
gimp_display_shell_scale_update_rulers (shell);
}
/**