changeset 4700:ef70ee47d287

Image instantiator pixmap hotspots are Lisp integers; make it so in GTK.
author Stephen J. Turnbull <stephen@xemacs.org>
date Fri, 25 Sep 2009 01:10:49 +0900
parents 0e1461b592ce
children 684f0ed6cd4f
files src/ChangeLog src/glyphs-gtk.c
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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  <stephen@xemacs.org>
 
+	* 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  <stephen@xemacs.org>
+
 	* config.h.in (HAVE_DBM):
 	* database.c (HAVE_DBM): 
 	Use gdbm/ndbm.h if needed (via NDBM_H_FILE).
--- 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,