gimp r26554 - in trunk: . app/display
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26554 - in trunk: . app/display
- Date: Thu, 14 Aug 2008 14:41:29 +0000 (UTC)
Author: martinn
Date: Thu Aug 14 14:41:29 2008
New Revision: 26554
URL: http://svn.gnome.org/viewvc/gimp?rev=26554&view=rev
Log:
2008-08-14 Martin Nordholts <martinn svn gnome org>
* app/display/gimpdisplayshell-scroll.c
(gimp_display_shell_scroll_clamp_and_update): New helper function.
* app/display/gimpdisplayshell-scale.c
* app/display/gimpdisplayshell-scroll.c
* app/display/gimpdisplayshell-callbacks.c: Use it.
Modified:
trunk/ChangeLog
trunk/app/display/gimpdisplayshell-callbacks.c
trunk/app/display/gimpdisplayshell-scale.c
trunk/app/display/gimpdisplayshell-scroll.c
trunk/app/display/gimpdisplayshell-scroll.h
Modified: trunk/app/display/gimpdisplayshell-callbacks.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-callbacks.c (original)
+++ trunk/app/display/gimpdisplayshell-callbacks.c Thu Aug 14 14:41:29 2008
@@ -322,8 +322,8 @@
center_vertically);
}
- gimp_display_shell_scroll_clamp_offsets (shell);
- gimp_display_shell_update_scrollbars_and_rulers (shell);
+ gimp_display_shell_scroll_clamp_and_update (shell);
+
gimp_display_shell_scaled (shell);
}
}
Modified: trunk/app/display/gimpdisplayshell-scale.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-scale.c (original)
+++ trunk/app/display/gimpdisplayshell-scale.c Thu Aug 14 14:41:29 2008
@@ -537,8 +537,7 @@
if (resize_window)
gimp_display_shell_shrink_wrap (shell, grow_only);
- gimp_display_shell_scroll_clamp_offsets (shell);
- gimp_display_shell_update_scrollbars_and_rulers (shell);
+ gimp_display_shell_scroll_clamp_and_update (shell);
gimp_display_shell_scaled (shell);
gimp_display_shell_expose_full (shell);
Modified: trunk/app/display/gimpdisplayshell-scroll.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-scroll.c (original)
+++ trunk/app/display/gimpdisplayshell-scroll.c Thu Aug 14 14:41:29 2008
@@ -141,8 +141,8 @@
shell->offset_x = offset_x;
shell->offset_y = offset_y;
- gimp_display_shell_scroll_clamp_offsets (shell);
- gimp_display_shell_update_scrollbars_and_rulers (shell);
+ gimp_display_shell_scroll_clamp_and_update (shell);
+
gimp_display_shell_scrolled (shell);
gimp_display_shell_expose_full (shell);
@@ -234,6 +234,20 @@
}
/**
+ * gimp_display_shell_scroll_clamp_and_update:
+ * @shell:
+ *
+ * Helper function for calling two functions that are commonly called
+ * in pairs.
+ **/
+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_scroll_center_image:
* @shell:
* @horizontally:
Modified: trunk/app/display/gimpdisplayshell-scroll.h
==============================================================================
--- trunk/app/display/gimpdisplayshell-scroll.h (original)
+++ trunk/app/display/gimpdisplayshell-scroll.h Thu Aug 14 14:41:29 2008
@@ -30,6 +30,7 @@
gint offset_x,
gint offset_y);
void gimp_display_shell_scroll_clamp_offsets (GimpDisplayShell *shell);
+void gimp_display_shell_scroll_clamp_and_update (GimpDisplayShell *shell);
void gimp_display_shell_scroll_center_image (GimpDisplayShell *shell,
gboolean horizontally,
gboolean vertically);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]