Extension compile error



Hi

I'm trying to write an extension but I'm running into troubles.

I've taken the following lines from CameraFileSelectionDialog.cs

TagMenu tagmenu = new TagMenu (null, MainWindow.Toplevel.Database.Tags);
tagmenu.NewTagHandler = HandleNewTagSelected;

but if I place those lines in my .cs, make will return the following error:
$ make
gmcs -target:library MetaPixelExport.cs -pkg:f-spot
-pkg:gnome-vfs-sharp-2.0 -pkg:gtk-sharp -r:Mono.Posix
-resource:MetaPixelExport.addin.xml
MetaPixelExport.cs(74,33): error CS1502: The best overloaded method
match for `Gtk.MenuShell.Append(Gtk.Widget)' has some invalid arguments
MetaPixelExport.cs(74,33): error CS1503: Argument 1: Cannot convert type
`Gtk.MenuItem' to `Gtk.Widget'

did I miss any linking?

Thanks.
maxxer

-- 
Lorenzo Milesi - lorenzo milesi yetopen it

YetOpen S.r.l. - http://www.yetopen.it/
C.so E. Filiberto, 74 23900 Lecco - ITALY -
Tel 0341 220 205 - Fax 178 607 8199

GPG/PGP Key-Id: 0xE704E230 - http://keyserver.linux.it

-------- D.Lgs. 196/2003 --------

Si avverte che tutte le informazioni contenute in questo messaggio sono
riservate ed a uso esclusivo del destinatario. Nel caso in cui questo
messaggio Le fosse pervenuto per errore, La invitiamo ad eliminarlo
senza copiarlo, a non inoltrarlo a terzi e ad avvertirci non appena
possibile.
Grazie.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]