Re: [gtk-list] Re: gtk draw shadow ?

gtk_draw_shadow  (preview->style,preview->window,

You have to send it a window...but the window id of preview
isn't valid yet. preview has to be realized before the window
id is valid, it's NULL until then...thus the error you are seeing.
(The widget id is valid, but a window id hasn't yet been assigned).

(I think the suggestion to add a frame is a good one, since it handles the
outline for you, and stays at the widget level.....)


----- Original Message -----
From: Andreas Scherf <>
To: <>
Sent: Thursday, March 16, 2000 5:46 PM
Subject: [gtk-list] Re: gtk draw shadow ?

> On Thu, 16 Mar 2000, Nicolas GEORGE wrote:
>  CRITICAL **: file gtkstyle.c: line 1346 (gtk_default_draw_shadow):
> `window != NULL' failed. >
> > The gdk_* functions are functions that deal directly with the display.
> > must draw the shadow when the widget gets displayed, that is when you
> > expose events. But here, I think you should try to add a gtk_frame
> > your event box.
> But this isnīt a gdk_* function it is from gtk_style !! Anybody has an
answr ??
> Mfg
> Andreas Scherf
> "It said uses Windows 98 or better, so I loaded Linux!"
> --
> To unsubscribe: mail -s unsubscribe <

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