zane.sims
Joined: 07 Aug 2007 Posts: 40
|
Posted: Sun Nov 29, 2009 10:29 am Post subject: new gtk.MenuItem Overloaded Constructor Problem |
|
|
Must be a bad week. I'm having a lot of stupid small problems.
When I try to initialise a new instance of gtk.MenuItem, I get a compile error using the following constructor:
this(void delegate(MenuItem) dlg, string label, string action, bool mnemonic = true, AccelGroup accelGroup = null, char accelKey = '\x00', GdkModifierType modifierType = (GdkModifierType).CONTROL_MASK, GtkAccelFlags accelFlags = (GtkAccelFlags).VISIBLE);
Here is the snippet:
Code: | new MenuItem(&onMenuActivate, "_About", "help.about"); |
and here is the command line output:
Code: | C:\zane\programming\D\server_gui>dsss build
main.d => main
main.d(43): Error: constructor gtk.MenuItem.MenuItem.this (GtkMenuItem*) does not match parameter types (void function(MenuItem menuItem),char[6u],char[10u])
main.d(43): Error: expected 0 arguments, not 3 for non-variadic function type MenuItem()
Command C:\dmd\dsss\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting. |
I am using Win XP SP2, DMD v1.051, DSSS v0.78, GtkD v1.2
If I use this constructor, I do not encounter any compile errors:
this(string label, bool mnemonic = true);
Thanks for any help that can be provided! _________________ わたしがプログラマだよ! |
|