# HG changeset patch # User Stephen J. Turnbull # Date 1253808649 -32400 # Node ID ef70ee47d287304d99e41e93f4b50302950f1ead # Parent 0e1461b592ce4a17b5803bb167849be046fc071c Image instantiator pixmap hotspots are Lisp integers; make it so in GTK. diff -r 0e1461b592ce -r ef70ee47d287 src/ChangeLog --- a/src/ChangeLog Thu Sep 24 09:36:49 2009 +0900 +++ b/src/ChangeLog Fri Sep 25 01:10:49 2009 +0900 @@ -313,6 +313,12 @@ 2009-07-31 Stephen Turnbull + * glyphs-gtk.c (gtk_xpm_instantiate): Image instance pixmap + hotspot coordinates are Lisp integers; make it so. + Thanks to Karl Kleinpaste for reporting. + +2009-07-31 Stephen Turnbull + * config.h.in (HAVE_DBM): * database.c (HAVE_DBM): Use gdbm/ndbm.h if needed (via NDBM_H_FILE). diff -r 0e1461b592ce -r ef70ee47d287 src/glyphs-gtk.c --- a/src/glyphs-gtk.c Thu Sep 24 09:36:49 2009 +0900 +++ b/src/glyphs-gtk.c Fri Sep 25 01:10:49 2009 +0900 @@ -1329,10 +1329,10 @@ break; case IMAGE_POINTER: - /* #### Gtk does not give us access to the hotspots of a pixmap */ - - IMAGE_INSTANCE_PIXMAP_HOTSPOT_X (ii) = 1; - IMAGE_INSTANCE_PIXMAP_HOTSPOT_Y (ii) = 1; + /* #### Gtk does not give us access to the hotspots of a pixmap */ + + IMAGE_INSTANCE_PIXMAP_HOTSPOT_X (ii) = make_int(1); + IMAGE_INSTANCE_PIXMAP_HOTSPOT_Y (ii) = make_int(1); image_instance_convert_to_pointer (ii, instantiator, pointer_fg,