Re: [gtk-list] Re: How to use a gpointer?



hniksic@srce.hr wrote:
>I wrote:
>>dave@srce.hr wrote:
>>> I've noticed that some functions have `guint32 time'
>>> argument. I didn't check the sources, but I suppose that the OS and X
>>> libraries handle this one as a time_t type.
>>> Will this break a 64 bit GTK application?
>> 
>> It's the time field from an X event, so it's 32 bits.
>
>Really?  Even in 64-bit environments?  That would be strange indeed.
>If we're talking about the type that X calls `Time' (the type normally
>used in X event structures, which Gtk "wisely" assigns to guint32),
>then it's definitely 64-bit on 64-bit systems.
>
>    #ifndef _XSERVER64
>    [...]
>    typedef unsigned long Time;
>    #else
>    [...]
>    typedef CARD32 Time;
>    #endif

Won't this sort of thing break the X wire protocol? I thought that was fixed
at 32 bits? AFAIK this is server stuff (internally, it can represent Time any
way it likes), by the time the value reaches a client it has to be 32 bits.

Sorry if I've added to the confusion here.

John 
--
John Cupitt, john.cupitt@ng-london.org.uk, +44 (0)171 930 2108
VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN



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