discuss-gnustep
[Top][All Lists]
Advanced

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

Re: OOPS!! Sorry Again, Fw: Sorry no attachment :-) (Fw: [Q] Why do es t


From: Dan Pascu
Subject: Re: OOPS!! Sorry Again, Fw: Sorry no attachment :-) (Fw: [Q] Why do es this logic not work?)
Date: Mon, 29 Jan 2001 03:30:14 +0200 (EET)

On 28 Jan, Sungjin Chun wrote:
>> > I've found some clue :-) context->drawable is the
>> > source of the problem but I cannot figure out
>> > why... If I create drawable like the way in
>> > test.c( previously attached file ) it creates
>> > appicon but using RContextCreate, it does not
>> > create what I want.

Don't use context->drawable as your window for the appicon. It's not
meant for that. That is an internal window for the specified wraster
context (related to the X context: display, screen, visual, depth, ...)
that is used when you need to create a pixmap (X pixmap) with
XCreatePixmap(). XCreatePixmap() asks you to pass a drawable in the
context where you wish to create the pixmap, and that's what
context->drawable is for, nothing more.
No wonder that it didn't show anything when you used it, instead of
creating the actual appicon window yourself.

RContextCreate() creates just that. A context. Not any window to draw
in.

-- 
Dan




reply via email to

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