Re: File dialog box save overwrite problem
- From: Sven Neumann <sven gimp org>
- To: prasanthi chaudhary <prasanthiv2001 yahoo com>
- Cc: gtk-list gnome org
- Subject: Re: File dialog box save overwrite problem
- Date: 26 Jul 2004 21:19:05 +0200
Hi,
prasanthi chaudhary <prasanthiv2001 yahoo com> writes:
> I am writing a programme, if the user clicks on a
> button then i am displaying the filedialog box and
> reading the filename entered by the user, when user
> clicks on Ok button of the file dialog box and
> creating a file with that name(To store some
> information for my application).
> Problem is when user types a name that already exists
> in that directory then i want to display a message to
> the user about the situation. I could not get any idea
> about how can i check whether the file name already
> exists using filedialog box. Any help will be
> appreciated.
basically by calling g_file_test (filename, G_FILE_TEST_EXIST);
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]