AW: overwrite files & file chooser



Hm,

I thought that it would be nice when the file chooser or selector dialog
could do an event that could be catched if a filename that already exists is
typed in a Gtk::FILE_CHOOSER_ACTION_SAVE dialog, because they are already
working with the file system. So how do you check if a file already exists
before saveing? Something like that:
	
	FILE * pFile = fopen(CFile.c_str(), "rb");
    	if (pFile == 0) return false; 

Greets AH

-----Ursprüngliche Nachricht-----
Von: Jan Hudec [mailto:bulb vagabond light src] Im Auftrag von Jan Hudec
Gesendet: Dienstag, 4. Januar 2005 13:44
An: Murray Cumming
Cc: Andreas Hauber; gtkmm-list
Betreff: Re: overwrite files & filechooser

On Tue, Jan 04, 2005 at 11:30:42 +0100, Murray Cumming wrote:
> On Tue, 2005-01-04 at 11:21 +0100, Jan Hudec wrote:
> > On Tue, Jan 04, 2005 at 10:27:21 +0100, Andreas Hauber wrote:
> > > is there a method to display a message like "do you really want to
overwrite
> > > the file: foo ?" in the filechooserdialog or does somebody know the
best way
> > > to do this.
> > 
> > This functionality does NOT belong to filechooser nor fileselector. When
> > the fileselector dialog returns, simply check the name and ask the
> > question using normal Dialog.
> > 
> > PS: For sake of user's sanity, please use FileSelector.
> 
> FileSelector is deprecated. If there's something that you don't like
> about FileChooser then do some research and then file concise bugs.

Read the loooong list of bugs filed against FileChooser claiming it's
completely unusable. It makes it virtualy impossible to type in path
using keyboard (you can, but it pops a separate dialog, which does not
do tab-completion).

----------------------------------------------------------------------------
---
						 Jan 'Bulb' Hudec
<bulb ucw cz>




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