changeset 4433:1bf48c59700e

Fix old use of rvalue on lhs to placate gcc >4.0. <d9ae65bd0803040244s13437988ka08bae763d28801f@mail.gmail.com>
author Stephen J. Turnbull <stephen@xemacs.org>
date Wed, 05 Mar 2008 01:12:53 -0800
parents 87ef74baf946
children 7f3d065a56a1
files src/ChangeLog src/glyphs-gtk.c
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Mar 05 01:11:21 2008 -0800
+++ b/src/ChangeLog	Wed Mar 05 01:12:53 2008 -0800
@@ -1,3 +1,10 @@
+2008-03-05  Dominique Quatravaux  <domq@cpan.org>
+
+	* glyphs-gtk.c (init_image_instance_from_gdk_image):
+	(gtk_colorize_image_instance):
+	Use IMAGE_INSTANCE_PIXMAP_MASK (an lvalue), not
+	IMAGE_INSTANCE_GTK_MASK (an rvalue).
+
 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
 
 	* console-gtk.c (gtk_perhaps_init_unseen_key_defaults): Fix typo.
--- a/src/glyphs-gtk.c	Wed Mar 05 01:11:21 2008 -0800
+++ b/src/glyphs-gtk.c	Wed Mar 05 01:12:53 2008 -0800
@@ -796,7 +796,7 @@
     find_keyword_in_vector (instantiator, Q_file);
 
   IMAGE_INSTANCE_GTK_PIXMAP (ii) = pixmap;
-  IMAGE_INSTANCE_GTK_MASK (ii) = 0;
+  IMAGE_INSTANCE_PIXMAP_MASK (ii) = 0;
   IMAGE_INSTANCE_PIXMAP_WIDTH (ii) = gdk_image->width;
   IMAGE_INSTANCE_PIXMAP_HEIGHT (ii) = gdk_image->height;
   IMAGE_INSTANCE_PIXMAP_DEPTH (ii) = gdk_image->depth;
@@ -2972,7 +2972,7 @@
       IMAGE_INSTANCE_TYPE (p) = IMAGE_COLOR_PIXMAP;
       /* Make sure there aren't two pointers to the same mask, causing
 	 it to get freed twice. */
-      IMAGE_INSTANCE_GTK_MASK (p) = 0;
+      IMAGE_INSTANCE_PIXMAP_MASK (p) = 0;
       break;
 
     default: