Re: [evolution-patches] Overwriting files warnings in save-attachments and save-calendar plugins



On Tue, 2005-01-04 at 10:27 +0100, Philip Van Hoof wrote:
> On Tue, 2005-01-04 at 11:28 +0800, Not Zed wrote:
> > 
> > Except it should be using e-error for all of these windows.  We
> > do/should not use gtk message dialogues at all.  We also include no
> > markup in error message strings to simplify translation.
> > 
> > Infact we already have a 'system' e-error for this purpose.
> > 
> > You simply need to do:
> > 
> > #include "widgets/misc/e-error.h"
> > 
> > if (e_error_run(parent, E_ERROR_ASK_FILE_EXISTS_OVERWRITE, path, NULL)
> > == GTK_RESPONSE_OK)
> >    .. overwrite is ok ...
> > else
> >    .. cancelled ...
> > 
> > where:
> > parent == the parent window, NULL if not known (it will use a system
> > wide one if this is the case)
> > path == the filename
> 
> Altered and patch attached. Should I commit this?
> 
yes, please commit.
-- 
Rodrigo Moya <rodrigo novell com>




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