On Sat, 2014-12-20 at 00:51 -0200, Flavio Danesse wrote:
> Another thing that does not work as expected is:
>
> this.get_toplevel ()
>
> This should return the main application window, or one Gtk.Window, but
> returns a Gtk.Widget
Because that's what the C function does. The documentation descr
Another thing that does not work as expected is:
this.get_toplevel ()
This should return the main application window, or one Gtk.Window, but
returns a Gtk.Widget
2014-12-20 0:32 GMT-02:00 Flavio Danesse :
> I understand, but it is logical that a get back what is asked, things like
> that are no
I understand, but it is logical that a get back what is asked, things like
that are not logical fol:
error: invocation of void method not allowed as expression
this.get_property("type");
In the initial example:
this.get_allocation()
does not work, though:
this.get_allocated_width()
if it works.
Mmm, no you didn't. :-)
Gdk.Allocation allocation;
this.get_allocation(out allocation);
This is admittedly more awkward and Gtk.Widget.get_allocation has the right
type signature in C to return, but this binding works too.
On 19 December 2014 at 10:27, Flavio Danesse wrote:
>
> *Hi, I just want
*Hi, I just wanted to comment that I found a major bug in gtk:*
error: invocation of void method not allowed as expression
Gdk.Rectangle rect = this.get_allocation();
^
___
vala-list mailing list
vala-list