mirror of https://github.com/GNOME/gimp.git
Use C89 declarations.
2007-05-29 Mukund Sivaraman <muks@mukund.org> * plug-ins/imagemap/imap_object.c: Use C89 declarations. svn path=/trunk/; revision=22646
This commit is contained in:
parent
11f6b6d005
commit
c705096434
|
@ -1,3 +1,7 @@
|
||||||
|
2007-05-29 Mukund Sivaraman <muks@mukund.org>
|
||||||
|
|
||||||
|
* plug-ins/imagemap/imap_object.c: Use C89 declarations.
|
||||||
|
|
||||||
2007-05-29 Michael Natterer <mitch@gimp.org>
|
2007-05-29 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/display/gimpdisplayshell-dnd.c
|
* app/display/gimpdisplayshell-dnd.c
|
||||||
|
|
|
@ -298,6 +298,8 @@ void
|
||||||
object_move_sash(Object_t *obj, gint dx, gint dy)
|
object_move_sash(Object_t *obj, gint dx, gint dy)
|
||||||
{
|
{
|
||||||
gint x, y, width, height;
|
gint x, y, width, height;
|
||||||
|
MoveSashFunc_t sash_func;
|
||||||
|
|
||||||
obj->class->get_dimensions(obj, &x, &y, &width, &height);
|
obj->class->get_dimensions(obj, &x, &y, &width, &height);
|
||||||
if (dx == 0)
|
if (dx == 0)
|
||||||
x += (width / 2);
|
x += (width / 2);
|
||||||
|
@ -309,7 +311,8 @@ object_move_sash(Object_t *obj, gint dx, gint dy)
|
||||||
else
|
else
|
||||||
y += height;
|
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) {
|
if (sash_func) {
|
||||||
sash_func(obj, dx, dy);
|
sash_func(obj, dx, dy);
|
||||||
object_emit_geometry_signal(obj);
|
object_emit_geometry_signal(obj);
|
||||||
|
|
Loading…
Reference in New Issue