Commit fc35afe3 authored by Martin Nordholts's avatar Martin Nordholts Committed by Martin Nordholts

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
parent 4dd186ba
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>
* app/plug-in/gimpplugin-cleanup.c (gimp_plug_in_cleanup_item):
......
......@@ -84,9 +84,9 @@ static GimpRectangleConstraint
static void gimp_crop_tool_options_notify (GimpCropOptions *options,
GParamSpec *pspec,
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,
GimpCropTool *crop_tool);
GimpContext *context);
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_CALLBACK (gimp_crop_tool_image_changed),
crop_tool, 0);
crop_tool,
G_CONNECT_SWAPPED);
options = GIMP_CROP_TOOL_GET_OPTIONS (object);
......@@ -393,9 +394,9 @@ gimp_crop_tool_options_notify (GimpCropOptions *options,
}
static void
gimp_crop_tool_image_changed (GimpContext *gimp_context,
gimp_crop_tool_image_changed (GimpCropTool *crop_tool,
GimpImage *image,
GimpCropTool *crop_tool)
GimpContext *context)
{
gimp_crop_tool_update_option_defaults (GIMP_CROP_TOOL (crop_tool),
FALSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment