- gdk_pixbuf_composite (paste_pb, base_pb,
- to_x, to_y, w, h,
- to_x - from_x, to_y - from_y,
- 1.0, 1.0,
- GDK_INTERP_HYPER,
- opacity * 255);
+ {
+ from_x++; /* gdk_pixbuf_composite gets confused about the bevel: */
+ from_y++; /* it leaves a stripe on the top and left if we try to */
+ to_x++; /* start at 0,0, so pull it right and down by 1 pixel. */
+ to_y++; /* (problem seen in gtk2-2.4.14-2.fc3) */
+ w--;
+ h--;
+
+ if (w > 0 && h > 0)
+ gdk_pixbuf_composite (paste_pb, base_pb,
+ to_x, to_y, w, h,
+ to_x - from_x, to_y - from_y,
+ 1.0, 1.0,
+ GDK_INTERP_HYPER,
+ opacity * 255);
+ }