gimp r25582 - in trunk: . app/tools
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25582 - in trunk: . app/tools
- Date: Wed, 7 May 2008 18:55:39 +0100 (BST)
Author: martinn
Date: Wed May 7 17:55:39 2008
New Revision: 25582
URL: http://svn.gnome.org/viewvc/gimp?rev=25582&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/tools/gimpcroptool.c
Modified: trunk/app/tools/gimpcroptool.c
==============================================================================
--- trunk/app/tools/gimpcroptool.c (original)
+++ trunk/app/tools/gimpcroptool.c Wed May 7 17:55:39 2008
@@ -84,9 +84,9 @@
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 @@
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 @@
}
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]