added missing static qualifier.

2007-08-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage.c: added missing static qualifier.

	* app/display/gimpdisplayshell.c
	* app/display/gimpdisplayshell-handlers.c: implement the
	GimpColorManaged interface and delegate it to GimpImage.


svn path=/trunk/; revision=23126
This commit is contained in:
Sven Neumann
2007-08-06 19:23:22 +00:00
committed by Sven Neumann
parent 604fad64b2
commit 2195c84297
4 changed files with 53 additions and 3 deletions

View File

@ -20,6 +20,7 @@
#include <gtk/gtk.h>
#include "libgimpcolor/gimpcolor.h"
#include "libgimpwidgets/gimpwidgets.h"
#include "display-types.h"
@ -79,6 +80,8 @@ static void gimp_display_shell_update_sample_point_handler(GimpImage *i
GimpDisplayShell *shell);
static void gimp_display_shell_invalidate_preview_handler (GimpImage *image,
GimpDisplayShell *shell);
static void gimp_display_shell_profile_changed_handler (GimpColorManaged *image,
GimpDisplayShell *shell);
static void gimp_display_shell_vectors_freeze_handler (GimpVectors *vectors,
GimpDisplayShell *shell);
@ -167,6 +170,9 @@ gimp_display_shell_connect (GimpDisplayShell *shell)
g_signal_connect (image, "invalidate-preview",
G_CALLBACK (gimp_display_shell_invalidate_preview_handler),
shell);
g_signal_connect (image, "profile-changed",
G_CALLBACK (gimp_display_shell_profile_changed_handler),
shell);
shell->vectors_freeze_handler =
gimp_container_add_handler (image->vectors, "freeze",
@ -316,6 +322,9 @@ gimp_display_shell_disconnect (GimpDisplayShell *shell)
gimp_container_remove_handler (image->vectors,
shell->vectors_freeze_handler);
g_signal_handlers_disconnect_by_func (image,
gimp_display_shell_profile_changed_handler,
shell);
g_signal_handlers_disconnect_by_func (image,
gimp_display_shell_invalidate_preview_handler,
shell);
@ -484,6 +493,13 @@ gimp_display_shell_invalidate_preview_handler (GimpImage *image,
NULL);
}
static void
gimp_display_shell_profile_changed_handler (GimpColorManaged *image,
GimpDisplayShell *shell)
{
gimp_color_managed_profile_changed (GIMP_COLOR_MANAGED (shell));
}
static void
gimp_display_shell_vectors_freeze_handler (GimpVectors *vectors,
GimpDisplayShell *shell)