I've always used [Glade.Widget] so far and not WidgetAttribute.
What is the difference between the two?


Robert Jordan wrote:

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

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list



_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to