Uncomment the inclusion of gdkcursor.h that should happen only with GTk+
1999-10-25 Tor Lillqvist <tml@iki.fi> * app/cursorutil.h: Uncomment the inclusion of gdkcursor.h that should happen only with GTk+ 1.3, anyway? Why was it commented out? * app/tile_swap.c: Close before unlinking on Win32, too. * libgimp/gimp.def: Updates, sorted. * plug-ins/makefile.{cygwin,msc}: Add the gap and imagemap plug-ins. Remove palette plug-in (what happened to it?). Portability fixes from Hans Breuer: * plug-ins/FractalExplorer/Dialogs.c * plug-ins/gap/*.c: * plug-ins/gimpressionist/gimpressionist.c: * plug-ins/common/spheredesigner.c: Ifdefify system-dependent includes. * plug-ins/common/psp.c: Remove an unused variable. * plug-ins/imagemap/{imap_csim.y,imap_csim_parse.c}: Use <string.h>, not <strings.h>. * plug-ins/imagemap/imap_rectangle.c (rectangle_near_sash): Use the & operator for function names to return pointers to them. * plug-ins/winsnap/winsnap.c (sendBMPToGimp): gimp_drawable_flush() should be called before resizing the layer and image. Now the snapshot of a window is returned the correct size, it's not padded in width to a multiple of four pixels.
This commit is contained in:
committed by
Tor Lillqvist
parent
f59371098a
commit
0274d8526d
@ -252,25 +252,25 @@ rectangle_near_sash(Object_t *obj, gint x, gint y)
|
||||
{
|
||||
Rectangle_t *rectangle = ObjectToRectangle(obj);
|
||||
if (near_sash(rectangle->x, rectangle->y, x, y))
|
||||
return MoveUpperLeftSash;
|
||||
return &MoveUpperLeftSash;
|
||||
else if (near_sash(rectangle->x + rectangle->width / 2, rectangle->y, x, y))
|
||||
return MoveUpperSash;
|
||||
return &MoveUpperSash;
|
||||
else if (near_sash(rectangle->x + rectangle->width, rectangle->y, x, y))
|
||||
return MoveUpperRightSash;
|
||||
return &MoveUpperRightSash;
|
||||
else if (near_sash(rectangle->x, rectangle->y + rectangle->height / 2,
|
||||
x, y))
|
||||
return MoveLeftSash;
|
||||
return &MoveLeftSash;
|
||||
else if (near_sash(rectangle->x + rectangle->width,
|
||||
rectangle->y + rectangle->height / 2, x, y))
|
||||
return MoveRightSash;
|
||||
return &MoveRightSash;
|
||||
else if (near_sash(rectangle->x, rectangle->y + rectangle->height, x, y))
|
||||
return MoveLowerLeftSash;
|
||||
return &MoveLowerLeftSash;
|
||||
else if (near_sash(rectangle->x + rectangle->width / 2,
|
||||
rectangle->y + rectangle->height, x, y))
|
||||
return MoveLowerSash;
|
||||
return &MoveLowerSash;
|
||||
else if (near_sash(rectangle->x + rectangle->width,
|
||||
rectangle->y + rectangle->height, x, y))
|
||||
return MoveLowerRightSash;
|
||||
return &MoveLowerRightSash;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user