[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Vala] How to subclass a Gtk.Label?
- From: lariamat <interflug1 gmx net>
- To: Thijs Vermeir <thijsvermeir gmail com>, vala-list <vala-list gnome org>
- Subject: Re: [Vala] How to subclass a Gtk.Label?
- Date: Thu, 30 Oct 2008 17:35:58 +0100
"text" should be completely hidden because we have the
"set_text"/"get_text" in parallel with the "set_markup".
Btw, shouldn't a construction-method with a string as parameter work for
the derrived class like for a Gtk.Label? It doesn't.
using Gtk;
public class MyLabel : Label {
}
static int main (string[] args) {
Gtk.init (ref args);
var window = new Window (WindowType.TOPLEVEL);
var label = new MyLabel("construct text");
window.add (label);
window.show_all ();
Gtk.main ();
return 0;
}
Am Donnerstag, den 30.10.2008, 15:44 +0100 schrieb Thijs Vermeir:
> Hi
>
> On Thu, Oct 30, 2008 at 3:22 PM, Luca Dionisi <luca dionisi gmail com> wrote:
> > On Thu, Oct 30, 2008 at 3:15 PM, Thijs Vermeir <thijsvermeir gmail com> wrote:
> >> use should not use text directly but use the set_text function, (like
> >> you would do in C)
> >
> > Then vapi file should declare "text" as a read-only property.
> > Right?
> >
>
> "text" is not a property but a member of the public struct of
> GtkLabel. But marked in the comments
> as private. So it should be fully hidden in the vapi file.
>
> Gr,
> Thijs
> _______________________________________________
> 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]