[Mono-list] Re: Glade.WidgetAttribute problem

Robert Jordan robertj at gmx.net
Sat Oct 22 11:58:23 EDT 2005


Raúl,

> I am trying to learn Linux programming using Mono, that's ok but I can't
> do so much things because I can't link code objects (variables) to Glade
> objects (widgets). I know that I've to declare one variable per widget I
> want to use in my code, and I've to write a "[Glade.WidgetAttribute]"
> before that, but I only get an error message when I do it:
> 
> [Task:File=/home/raul/Projects/prueba_glade/Main.cs, Line=15, Column=3,
> Type=Error, Description=Expecting `;'(CS1002)
> 

Well, this is incorrect C# code. The type of the field
is missing:

> 		[Glade.WidgetAttribute] window1; //<--- the ugly line

[Glade.WidgetAttribute] SomeType window1;

Rob



More information about the Mono-list mailing list