After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 50372 - Setting stipple to NULL = X error
Setting stipple to NULL = X error
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Backend: X11
1.3.x
Other All
: Normal normal
: Small fix
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-01-23 17:49 UTC by Havoc Pennington
Modified: 2010-08-11 03:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Easiest way to patch this problem. (Ignore the problem, it'll go away!) (875 bytes, patch)
2001-03-04 21:13 UTC, frostfreek
none Details | Review
New patch that clears the X GC stipple/tile (1.38 KB, patch)
2001-03-23 04:24 UTC, frostfreek
none Details | Review
Cleaned up patch... without g_if_fail, and with less copying. (1.30 KB, patch)
2001-04-04 02:35 UTC, frostfreek
needs-work Details | Review

Description Havoc Pennington 2001-01-23 17:49:14 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.
Comment 1 Havoc Pennington 2001-01-29 19:40:18 UTC
Put all GTK 1.3.x bugs on 2.0.0 milestone
Comment 2 frostfreek 2001-03-04 21:13:20 UTC
Created attachment 362 [details] [review]
Easiest way to patch this problem. (Ignore the problem, it'll go away!)
Comment 3 frostfreek 2001-03-23 04:24:45 UTC
Created attachment 420 [details] [review]
New patch that clears the X GC stipple/tile
Comment 4 frostfreek 2001-04-04 02:35:21 UTC
Created attachment 451 [details] [review]
Cleaned up patch... without g_if_fail, and with less copying.
Comment 5 Owen Taylor 2001-05-31 22:12:22 UTC
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.
Comment 6 Owen Taylor 2002-01-31 17:32:52 UTC
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.
Comment 7 Elijah Newren 2004-06-19 18:43:26 UTC
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.
Comment 8 Matthias Clasen 2010-08-11 03:22:39 UTC
gcs and stipple are gone in gtk3