* 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> 2005-08-09 Dan Winship <danw@novell.com>
* configure.in.in: kill off all gda/gnomedb references. * configure.in.in: kill off all gda/gnomedb references.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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