Re: [Vala] How to call base constructors
- From: Vlad Grecescu <b100dian gmail com>
- To: Adi Roiban <adi roiban ro>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] How to call base constructors
- Date: Mon, 4 May 2009 22:51:30 +0300
On Mon, May 4, 2009 at 4:40 PM, Adi Roiban
<adi roiban ro> wrote:
I'm trying to extend the Gtk.CheckMenuItem and unfortunately there are
no set_label or set_mnemonic methods.
I was thinking to call the base constructor, but instead of
gtk_check_menu_item_new_with_label, vala generates
gtk_check_menu_item_construct_with_label
Do you know how can I call a base constructor?
Many thanks!
Here is my example:
public class ProjectMenuItem : Gtk.CheckMenuItem {
public int id {set; get;}
public ProjectMenuItem.with_label(string name) {
base.with_label(name);
}
public ProjectMenuItem.with_mnemonic(string name) {
base.with_mnemonic(name);
}
}
--
Adi Roiban
I ran into the same issue, and so I filed a bug:
http://bugzilla.gnome.org/show_bug.cgi?id=581362
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]