app/core/gimpimage-guides.[ch] add accessors for the lists of guides and

2007-12-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-guides.[ch]
	* app/core/gimpimage-sample-points.[ch]: add accessors for the lists
	of guides and sample points.

	* app/core/gimpimage-crop.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage-flip.c
	* app/core/gimpimage-resize.c
	* app/core/gimpimage-rotate.c
	* app/core/gimpimage-scale.c
	* app/core/gimpimage-snap.c
	* app/core/gimpimage.c
	* app/display/gimpdisplayshell-appearance.c
	* app/display/gimpdisplayshell-draw.c
	* app/display/gimpdisplayshell.c
	* app/widgets/gimpsamplepointeditor.c
	* app/xcf/xcf-save.c: use the new accessors.


svn path=/trunk/; revision=24434
This commit is contained in:
Michael Natterer
2007-12-25 17:09:04 +00:00
committed by Michael Natterer
parent 0d31cf5521
commit 6074f7e248
18 changed files with 99 additions and 44 deletions

View File

@ -28,6 +28,8 @@
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "core/gimpimage-guides.h"
#include "core/gimpimage-sample-points.h"
#include "widgets/gimpactiongroup.h"
#include "widgets/gimprender.h"
@ -336,7 +338,7 @@ gimp_display_shell_set_show_guides (GimpDisplayShell *shell,
g_object_set (options, "show-guides", show, NULL);
if (shell->display->image->guides)
if (gimp_image_get_guides (shell->display->image))
gimp_display_shell_expose_full (shell);
SET_ACTIVE (shell->menubar_manager, "view-show-guides", show);
@ -394,7 +396,7 @@ gimp_display_shell_set_show_sample_points (GimpDisplayShell *shell,
g_object_set (options, "show-sample-points", show, NULL);
if (shell->display->image->sample_points)
if (gimp_image_get_sample_points (shell->display->image))
gimp_display_shell_expose_full (shell);
SET_ACTIVE (shell->menubar_manager, "view-show-sample-points", show);