[patch] gdkpixmap.c
- From: David Mosberger-Tang <David Mosberger acm org>
- To: gtk-list redhat com
- Subject: [patch] gdkpixmap.c
- Date: Wed, 22 Oct 1997 23:26:32 -0700
As far as I can tell, my previous mail to this list never made it.
Below is a short patch that is necessary for gtk+970925 to make
gdkpixmap's work as advertised. Without the patch, the gtkgraph
widget won't show the buttons properly. It's actually a patch that
Pete wrote for an earlier version of gtk+ so I'm fairly certain it's
correct. ;-)
--david
--- gtk+970925/gdk/gdkpixmap.c~ Wed Sep 24 18:29:11 1997
+++ gtk+970925/gdk/gdkpixmap.c Wed Oct 15 22:53:17 1997
@@ -408,9 +408,12 @@
*mask = gdk_pixmap_new (window, width, height, 1);
gc = gdk_gc_new (*mask);
+
+ tmp_color.pixel = 0;
+ gdk_gc_set_foreground (gc, &tmp_color);
gdk_draw_rectangle (*mask, gc, TRUE, 0, 0, -1, -1);
- gdk_color_white (colormap, &tmp_color);
+ tmp_color.pixel = ~((gulong) 0);
gdk_gc_set_foreground (gc, &tmp_color);
}
@@ -543,9 +546,12 @@
*mask = gdk_pixmap_new (window, width, height, 1);
gc = gdk_gc_new (*mask);
+
+ tmp_color.pixel = 0;
+ gdk_gc_set_foreground (gc, &tmp_color);
gdk_draw_rectangle (*mask, gc, TRUE, 0, 0, -1, -1);
- gdk_color_white (colormap, &tmp_color);
+ tmp_color.pixel = ~((gulong) 0);
gdk_gc_set_foreground (gc, &tmp_color);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]