problem gtktext.c



In testgtk the following warning occurs when executing gtk_text_insert:

** WARNING **: file gdkfont.c: line 130 (gdk_text_width): "font != NULL"

I've traced the problem down to draw_line, gdk_gc_get_values and ultimately
to XGetGCValues.  This function is called with among others the mask bits
GCFunction and GCClipMask.  However, the manpages say:

       The XGetGCValues function returns the components specified
       by valuemask for the specified GC.  If the valuemask con-
       tains a valid set of GC mask bits (GCFunction,
       GCPlaneMask, GCForeground, GCBackground, GCLineWidth,
       GCLineStyle, GCCapStyle, GCJoinStyle, GCFillStyle,
       GCFillRule, GCTile, GCStipple, GCTileStipXOrigin,
       GCTileStipYOrigin, GCFont, GCSubwindowMode,
       GCGraphicsExposures, GCClipXOrigin, GCCLipYOrigin,
       GCDashOffset, or GCArcMode) and no error occurs, XGetGC-
       Values sets the requested components in values_return and
       returns a nonzero status.  Otherwise, it returns a zero
!      status.  Note that the clip-mask and dash-list (repre-
!      sented by the GCClipMask and GCDashList bits, respec-
!      tively, in the valuemask) cannot be requested.

If I remove GCClipmask from the mask, then it works ok.  Can someone tell
me what I should do?  I mean, either my Xlib (X11R6.1) works differently
than that of others, or the clip_mask should be stored somewhere instead
of being requested.  Note that GCFunction is also not in the valid set, but
that doesn't seem to be a problem.

-----------------------------------------------------------------------------
this is Hoek v0.23 -- automatic mail replier         hoek@pcjeroen.ubu.ruu.nl
		see also http://www.araneus.com/
	"Where do you live?  Where is the manager?  Where does he live?"
							-- Grosse point Blanc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]