[MonoDevelop] Gtk.Tooltips is obsolete

Mike Kestner mkestner at gmail.com
Sun Jul 27 11:55:19 EDT 2008


On Sun, 2008-07-27 at 11:17 -0400, Chris Wright wrote:
> 2008/7/27 Sandy Armstrong <sanfordarmstrong at gmail.com>:
> > If you really want to ignore the warning I think there's some pragma
> > directive or something you can pass...I'm sure somebody else on the list
> > knows.  Or you could google it.
> 
> You'd need to use that pragma once in each file. More simply, you
> could put an [Obsolete] attribute on the assembly. Or rebuild Gtk and
> omit the [Obsolete] attribute from Tooltips.

Or compile with -nowarn:0612

#pragma warning disable 0612
//do some tooltips stuff
#pragma warning restore 0612

is the pragma based approach.  It's a C# 2.0 feature.

Mike



More information about the Monodevelop-list mailing list