[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Vala] How to subclass a Gtk.Label?
- From: "Thijs Vermeir" <thijsvermeir gmail com>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to subclass a Gtk.Label?
- Date: Thu, 30 Oct 2008 15:15:55 +0100
Hi,
On Thu, Oct 30, 2008 at 2:49 PM, Frederik <scumm_fredo gmx net> wrote:
> Hi,
>
> I tried to subclass a Label, but the program will crash:
>
> ---------------------------------------------------------
> using Gtk;
>
> public class MyLabel : Label {
>
> public MyLabel () {
> this.text = "Subclassed Label";
> }
> }
use should not use text directly but use the set_text function, (like
you would do in C)
Than it works.
Gr,
Thijs
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]