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

Nothing.:)

Syntax of C# (and some other .NET languages including VB.NET) permits not to
add Attribute suffix to attribute names and the compiler will try to find
attribute class with Attribute suffix as well. But note that this is a
feature of the compiler rather than the runtime.

Kornél

----- Original Message -----
From: "Raitskin Alexandr" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, October 22, 2005 12:22 PM
Subject: Re: [Mono-list] Re: Glade.WidgetAttribute problem


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


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

Reply via email to