Re: Crashes with long words in strings passed to gtk_widget_set_tooltip_text()



Just for clarification:

I've been asking on the xorg mailing list (xorg lists freedesktop org)
and got some useful answers and links: It appears that, despite the fact
xpixmaps widht/height are supposed to be stored as CARD16 (16-bit
unsigned int) (see
http://www.x.org/releases/X11R7.6/doc/xproto/x11protocol.html#requests:CreateWindow),
these values are actually always stored as 16-bit signed int. Hence the
confusion.

I also got this link: http://www.std.org/~msm/common/WhyX.pdf.

So GTK uses 65535 whereas X uses 32767 in practice and this is
probably not that important anyways.

-- 
Emmanuel Thomas-Maurin <manutm007 gmail com>


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