* generator/OpaqueGen.cs (Generate):

* generator/StructBase.cs (Generate): Add the [Obsolete] attribute
	to deprecated structs/boxeds/opaques too. (Affects Gdk.Font,
	Gtk.Arg, Gtk.ItemFactoryEntry, Gnome.IconData, and [in 2.6/2.8]
	Gnome.Vfs.MimeAction)

svn path=/trunk/gtk-sharp/; revision=48288
This commit is contained in:
Dan Winship 2005-08-11 14:13:25 +00:00
parent 35385da69b
commit 737a794d76
8 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2005-08-11 Dan Winship <danw@novell.com>
* generator/OpaqueGen.cs (Generate):
* generator/StructBase.cs (Generate): Add the [Obsolete] attribute
to deprecated structs/boxeds/opaques too. (Affects Gdk.Font,
Gtk.Arg, Gtk.ItemFactoryEntry, Gnome.IconData, and [in 2.6]
Gnome.Vfs.MimeAction)
2005-08-09 Dan Winship <danw@novell.com>
* configure.in.in: kill off all gda/gnomedb references.

View File

@ -283,4 +283,9 @@
</Docs>
</Member>
</Members>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
</Attributes>
</Type>

View File

@ -105,4 +105,9 @@
</Member>
</Members>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
</Attributes>
</Type>

View File

@ -175,4 +175,9 @@
</Docs>
</Member>
</Members>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
</Attributes>
</Type>

View File

@ -96,4 +96,9 @@
</Docs>
</Member>
</Members>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
</Attributes>
</Type>

View File

@ -121,4 +121,9 @@
</Docs>
</Member>
</Members>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
</Attributes>
</Type>

View File

@ -61,6 +61,8 @@ namespace GtkSharp.Generation {
Method ref_, unref, dispose;
GetSpecialMethods (out ref_, out unref, out dispose);
if (IsDeprecated)
sw.WriteLine ("\t[Obsolete]");
sw.Write ("\tpublic class " + Name);
string cs_parent = table.GetCSType(Elem.GetAttribute("parent"));
if (cs_parent != "")

View File

@ -162,6 +162,8 @@ namespace GtkSharp.Generation {
sw.WriteLine ();
sw.WriteLine ("#region Autogenerated code");
if (IsDeprecated)
sw.WriteLine ("\t[Obsolete]");
sw.WriteLine ("\t[StructLayout(LayoutKind.Sequential)]");
sw.WriteLine ("\tpublic struct " + Name + " {");
sw.WriteLine ();