[Gtk-sharp-list] problem with compilation of ToolButton

mirek Miroslav.Binas at cnl.tuke.sk
Fri Nov 18 03:33:24 EST 2005


i am new in gtk-sharp, and so - i've got some problems ;)

i created the main window in glade. it contains the toolbar with some 
buttons of type ToolButton. i added to the program line

[Glade.Widget] ToolButton toolbutton1;

and then i tryied to compile the program with line:

mcs -pkg:glade-sharp -pkg:gtk-sharp -resource:window.glade test.cs

but the result was

test.cs(24,19): error CS0246: The type or namespace name `ToolButton' 
could not be found. Are you missing a using directive or an assembly 

and so - i have no idea, where is the problem. when i was looking in the 
documentation in monodoc, there was following note:
/Note: This namespace, class, or member is supported only in version 
Gtk# 2.4 and later.

/so i upgraded the gkt-sharp2 to the version 2.4.0-0pre1, but the 
problem is still the same. and i dont know, where is the problem...

can anybody help? what i did wrong?


e-mail: mirek at host.sk
icq: 113397932
jabber: mirek_b at jabber.sk
homepage: http://www.intrak.sk/~binas

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

prosim, neposielajte mi prilohy vo formatoch .doc a .ppt (power point)
precitajte si http://www.fsf.org/philosophy/no-word-attachments.cs.html

More information about the Gtk-sharp-list mailing list