GNOME Bugzilla – Bug 50372
Setting stipple to NULL = X error
Last modified: 2010-08-11 03:22:39 UTC
Unsetting the stipple doesn't work, X doesn't seem to allow it. Maybe if NULL is passed for the stipple, pass in the default 1x1 stipple.
Put all GTK 1.3.x bugs on 2.0.0 milestone
Created attachment 362 [details] [review] Easiest way to patch this problem. (Ignore the problem, it'll go away!)
Created attachment 420 [details] [review] New patch that clears the X GC stipple/tile
Created attachment 451 [details] [review] Cleaned up patch... without g_if_fail, and with less copying.
This patch isn't clean for displays where the depth of the root window doesn't match the depth of the GC. The slow way of doing this is to create a new pixmap of the depth, create the GC for the pixmap, then destroy the pixmap along with the GC. However, that might make this slower than simply creating a pixmap to correspond to the default tile or stipple when unsetting these fields.
Note also that copying over in this way doesn't really get the "right" tile ... the default tile for a newly created GC is a 1x1 pixmap filled with the foreground color of the GC.
Mass changing gtk+ bugs with target milestone of 2.4.2 to target 2.4.4, as Matthias said he was trying to do himself on IRC and was asking for help with. If you see this message, it means I was successful at fixing the borken-ness in bugzilla :) Sorry for the spam; just query on this message and delete all emails you get with this message, since there will probably be a lot.
gcs and stipple are gone in gtk3