gimp r26154 - in trunk: . app/display
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26154 - in trunk: . app/display
- Date: Sat, 12 Jul 2008 10:27:20 +0000 (UTC)
Author: martinn
Date: Sat Jul 12 10:27:20 2008
New Revision: 26154
URL: http://svn.gnome.org/viewvc/gimp?rev=26154&view=rev
Log:
2008-07-12 Martin Nordholts <martinn svn gnome org>
* app/display/gimpdisplayshell-scale.c
(gimp_display_shell_scale_setup): The scrollbars should be setup
using the new offset, not the old counterpart.
Modified:
trunk/ChangeLog
trunk/app/display/gimpdisplayshell-scale.c
Modified: trunk/app/display/gimpdisplayshell-scale.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-scale.c (original)
+++ trunk/app/display/gimpdisplayshell-scale.c Sat Jul 12 10:27:20 2008
@@ -92,8 +92,6 @@
gfloat sw, sh;
gint image_width;
gint image_height;
- gint offset_x;
- gint offset_y;
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
@@ -119,15 +117,13 @@
sh = image_height;
}
- gimp_display_shell_get_render_start_offset (shell, &offset_x, &offset_y);
-
- shell->hsbdata->value = offset_x;
+ shell->hsbdata->value = shell->offset_x;
shell->hsbdata->upper = sw;
shell->hsbdata->page_size = MIN (sw, shell->disp_width);
shell->hsbdata->page_increment = shell->disp_width / 2;
shell->hsbdata->step_increment = shell->scale_x;
- shell->vsbdata->value = offset_y;
+ shell->vsbdata->value = shell->offset_y;
shell->vsbdata->upper = sh;
shell->vsbdata->page_size = MIN (sh, shell->disp_height);
shell->vsbdata->page_increment = shell->disp_height / 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]