Re: [Vala] setting this.window from Gtk.Widget subclass is not allowed?



On Fri, 2009-06-12 at 10:02 +0100, Ali Afshar wrote:
Hi everyone, nice work with Vala, I am quite excited.

I am not sure whether this is a bug or not, but when I follow the custom 
widget examples on http://live.gnome.org/Vala/CustomWidgetSamples, in 
the final example, which set's this.window (which seems right for gtk+ 
and is needed later by other parts of gtk+) I get an error complaining 
that "window" is read-only.

I am not sure what I am doing wrong, but this pretty much stuffs me from 
writing a custom widget implementation. Granted, I can subclass 
DrawingArea (except I need a container implementation) or EventBox 
(which already has 2 Gdk.Window), but it's not exactly ideal.

Fixed in git master.

Jürg




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