From: SourceForge.net <no...@so...> - 2008-11-11 21:20:40
|
Bugs item #2264732, was opened at 2008-11-11 21:20 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2264732&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 88. Themed Tk Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Colin McDonald (cjmcdonald) Assigned to: Joe English (jenglish) Summary: ttk themed widget X11 visual crash & patch Initial Comment: Using ttk widgets in a wish toplevel which has a different X11 visual to the screen root window crashes. E.g. on a system with a 24-bit truecolor root window, which also supports 8-bit pseudocolor: % wish8.5 -visual "pseudocolor 8" ttk::label .l -text test pack .l crashes with: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 70 (X_PolyFillRectangle) Serial number of failed request: 82 Current serial number in output stream: 83 The problem is in the double buffering code in ttkWidget.c,routine BeginDrawing(). It creates a pixmap with depth: DefaultDepthOfScreen(Tk_Screen(tkwin)) which should simply be replaced with Tk_Depth(tkwin) An updated ttkWidget.c from CVS head revision 1.16 is attached. The same fix can be applied to the 8.5.* series. Searching the bug tracker, this appears to be identical to the tk panedwindow bug #671122 in 2003. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2264732&group_id=12997 |