Re: GtkFileSelection question
- From: Scott Barron <sb125499 ohiou edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkFileSelection question
- Date: Thu, 8 Aug 2002 05:49:38 -0400
On Thu, Aug 08, 2002 at 12:29:23PM +0400, Alexander Chemeris wrote:
Hi!
I want to check if file exist when user click Ok button and if it
doesn't leave dialog open. What is the convenient way to do so?
Alexander Chemeris
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hi,
To check if the file exists you can use:
filename = gtk_file_selection_get_filename(GTK_FILE_SELECTION(dialog));
g_file_test(filename, G_FILE_TEST_EXISTS);
If it doesn't exist I believe you can simply not destroy/hide the dialog
(as I recall that's something you have to do explicitly).
-Scott
--
We are not humanity.
-B
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]