discuss-gnustep
[Top][All Lists]
Advanced

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

Re: SharedX ?


From: Philippe C . D . Robert
Subject: Re: SharedX ?
Date: Thu, 18 Jan 2001 14:53:48 +0100

"Philippe C.D. Robert" <address@hidden> wrote (Thu, 18 Jan 2001 14:12:11 +0100):
> Hi,
> XGContext.h includes
> #include <SharedX/XGGeneric.h>
> But there seems to be no SharedX/ anymore, so what should be done? What is 
> the best way retreive the following information:

Copying XGGeneric to the header path manually seems to do the job. Do I miss 
sth here?

>     XGContext *context = (XGContext *)[XGContext currentContext];

Better:

XGContext *context = (XGContext *)[NSGraphicsContext currentContext];

>     gswindow_device_t *wdev = [XGContext _windowWithTag:[win windowNumber]];
>     dpy = [context xDisplay];
>     drawable = (*wget).buffer;

should read 'wdev' of course...;-)

cheers, Phil
--
Philippe C.D. Robert | http://www.nice.ch/~phip/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]