Re: [evolution-patches] widgets, patch to close Settings dialog by ESC key



This is the wrong behaviour, yeah. It's not a cancel button. If you make
changes, and then click it, after clicking apply, it doesn't undo your
changes. If one hits ESC, the changes are expected to be undone. There
are discussions about what the ideal way to handle things like this,
going on.

-- dobey

On Pre , 2004-02-20 at 17:02 -0500, Jeffrey Stedfast wrote:

> I don't think we want this behaviour. Other GNOME apps do not close
> their preferences dialogs when the user hits ESC so I don't think we
> should either.
> 
> Jeff
> 
> On Fri, 2004-02-20 at 08:37, Eric Zhao wrote:
> > Hi,
> > 
> > Attached is a patch to fix the bug that the Settings dialog of
> > Evolution can't be closed be ESC key. This problem is caused by 
> > e-multi-config-dialog. 
> > 
> >    Since e-multi-config-dialog is derived from GtkDialog, it will 
> > do nothing when pressing ESC key on this dialog, because the 
> > e-multi-config-dialog doesn't have an action widget with GTK_RESPONSE_CANCEL
> > as its response ID. By changing the response ID of "Close" button from 
> > GTK_RESPONSE_CLOSE to GTK_RESPONSE_CANCEL, the ESC key can work.
> > 
> >    I have tested this patch on my box, please help review, thanks!
> > 
> > Changelog:
> >         * e-multi-config-dialog.c: (init): change the response id of
> >         "CLOSE" button from GTK_RESPONSE_CLOSE to GTK_RESPONSE_CANCEL,
> >         so that this kind of dialog can be closed by ESC key.
> 
> _______________________________________________
> Evolution-patches mailing list
> Evolution-patches lists ximian com
> http://lists.ximian.com/mailman/listinfo/evolution-patches




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]