diff --git a/ChangeLog b/ChangeLog index 2d9c23527c..57ad7e23c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-05-29 Mukund Sivaraman + + * plug-ins/imagemap/imap_object.c: Use C89 declarations. + 2007-05-29 Michael Natterer * app/display/gimpdisplayshell-dnd.c diff --git a/plug-ins/imagemap/imap_object.c b/plug-ins/imagemap/imap_object.c index c908f6d2ac..36b73c7c3f 100644 --- a/plug-ins/imagemap/imap_object.c +++ b/plug-ins/imagemap/imap_object.c @@ -298,18 +298,21 @@ void object_move_sash(Object_t *obj, gint dx, gint dy) { gint x, y, width, height; + MoveSashFunc_t sash_func; + obj->class->get_dimensions(obj, &x, &y, &width, &height); if (dx == 0) x += (width / 2); else x += width; - + if (dy == 0) y += (height / 2); else y += height; - - MoveSashFunc_t sash_func = obj->class->near_sash(obj, x, y); + + sash_func = obj->class->near_sash(obj, x, y); + if (sash_func) { sash_func(obj, dx, dy); object_emit_geometry_signal(obj); @@ -489,7 +492,7 @@ object_on_button_press(GtkWidget *widget, GdkEventButton *event, gpointer data) if (event->button == 1) { factory = ((ObjectFactory_t*(*)(guint)) data)(event->state); obj = object_factory_create_object(factory, x, y); - + gdk_gc_set_function(preferences->normal_gc, GDK_XOR); g_signal_connect(widget, "motion-notify-event",