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



Hello Jürg
Shouldn't the function 

public Window (Gdk.Window parent, Gdk.WindowAttr attributes, int
attributes_mask);

be

public Window (Gdk.Window? parent, Gdk.WindowAttr attributes, int
attributes_mask);

parent window can be null.
cheers



Am Freitag, den 12.06.2009, 23:19 +0200 schrieb Jürg Billeter:
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

_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




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