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



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.




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