Re: [Vala] How to subclass a Gtk.Label?



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]