Re: Runtime error
- From: John Coppens <john jcoppens com>
- To: Utpal Shasane <shasane_utpal extenprise net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Runtime error
- Date: Mon, 14 Jun 2004 10:28:39 -0300
On Mon, 14 Jun 2004 16:40:02 +0530
Utpal Shasane <shasane_utpal extenprise net> wrote:
Hello,
I am trying to print the file name from file selection dialog box by
using
printf ("%s\n",gtk_file_selection_get_filename (GTK_FILE_SELECTION
(fs)));
I am getting following error
Gtk-CRITICAL **: file gtkfilesel.c: line 1242
(gtk_file_selection_get_filename): assertion `GTK_IS_FILE_SELECTION
(filesel)' failed
Did you first create the fileselection (with gtk_file_selection_new)? - I
suppose so. How did you start (activate) the fileselection? Does it still
exist at the moment of the printf?
If you connected a _destroy to the buttons, the widget will not actually
exist anymore. In that case you have to extract the filename from the
selection in the callback function connected to the (Ok-)button, and copy
it somewhere else.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]