Make it feel like a class member function by G_CONNECT_SWAPPED-izing it.

2008-05-07  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimpcroptool.c (gimp_crop_tool_image_changed): Make it
	feel like a class member function by G_CONNECT_SWAPPED-izing it.

svn path=/trunk/; revision=25582
This commit is contained in:
Martin Nordholts 2008-05-07 17:55:39 +00:00 committed by Martin Nordholts
parent 4dd186bab4
commit fc35afe371
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2008-05-07 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimpcroptool.c (gimp_crop_tool_image_changed): Make it
feel like a class member function by G_CONNECT_SWAPPED-izing it.
2008-05-07 Sven Neumann <sven@gimp.org> 2008-05-07 Sven Neumann <sven@gimp.org>
* app/plug-in/gimpplugin-cleanup.c (gimp_plug_in_cleanup_item): * app/plug-in/gimpplugin-cleanup.c (gimp_plug_in_cleanup_item):

View File

@ -84,9 +84,9 @@ static GimpRectangleConstraint
static void gimp_crop_tool_options_notify (GimpCropOptions *options, static void gimp_crop_tool_options_notify (GimpCropOptions *options,
GParamSpec *pspec, GParamSpec *pspec,
GimpCropTool *crop_tool); GimpCropTool *crop_tool);
static void gimp_crop_tool_image_changed (GimpContext *gimp_context, static void gimp_crop_tool_image_changed (GimpCropTool *crop_tool,
GimpImage *image, GimpImage *image,
GimpCropTool *crop_tool); GimpContext *context);
G_DEFINE_TYPE_WITH_CODE (GimpCropTool, gimp_crop_tool, GIMP_TYPE_DRAW_TOOL, G_DEFINE_TYPE_WITH_CODE (GimpCropTool, gimp_crop_tool, GIMP_TYPE_DRAW_TOOL,
@ -183,7 +183,8 @@ gimp_crop_tool_constructor (GType type,
g_signal_connect_object (gimp_context, "image-changed", g_signal_connect_object (gimp_context, "image-changed",
G_CALLBACK (gimp_crop_tool_image_changed), G_CALLBACK (gimp_crop_tool_image_changed),
crop_tool, 0); crop_tool,
G_CONNECT_SWAPPED);
options = GIMP_CROP_TOOL_GET_OPTIONS (object); options = GIMP_CROP_TOOL_GET_OPTIONS (object);
@ -393,9 +394,9 @@ gimp_crop_tool_options_notify (GimpCropOptions *options,
} }
static void static void
gimp_crop_tool_image_changed (GimpContext *gimp_context, gimp_crop_tool_image_changed (GimpCropTool *crop_tool,
GimpImage *image, GimpImage *image,
GimpCropTool *crop_tool) GimpContext *context)
{ {
gimp_crop_tool_update_option_defaults (GIMP_CROP_TOOL (crop_tool), gimp_crop_tool_update_option_defaults (GIMP_CROP_TOOL (crop_tool),
FALSE); FALSE);