[MonoDevelop] Closing modified files

Jacob Ilsø Christensen jacobilsoe at gmail.com
Mon May 30 07:55:21 EDT 2005


On 5/30/05, Lluis Sanchez <lluis at ximian.com> wrote:
> > Hi.
> >
> > I am working on a quick patch which adds a cancel button to the dialog
> > you get when closing a modified file. Currently AskQuestion is used
> > which returns a bool. I would like the new method to return a
> > Gtk.ResponseType, but this would make MonoDevelop.Core
> > (IMessageService) reference the Gtk assembly. Do we want this
> > reference?
> 
> I don't think so. We can easily avoid the dependency by creating a new
> enum with Yes, No, Cancel. BTW, a cancel button does not always make
> sense when asking a question, so it should be optional.
> 

Yes, I thought of making such an enum but liked the generality of
Gtk.ResponseType, but I'll make the enum. It will be possible to make
a dialog without cancel since I plan to keep the AskQuestion method
and add another named AskQuestionWithCancel or something similar. Got
to do it this way since you cannot overload methods on the return
type.

/Jacob

> Lluis.
> 
> >
> > /Jacob
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>


More information about the Monodevelop-list mailing list