Re: gtk filechooser dialog error



Hi all,

I supposed use gtk_wdget_hide instead of gtk_widget_destroy in this case,now it is working as expected.


Best regards,
Nagaraja.

Hi all,

I am running glade-3.6.7, my gtk application have main window with buttons and File Menu to open and save a file . I build it from glade file. For File/Open and File/Save operation the filechooser dialog works fine it brings up the file chooser dialog window , where I can select the desired file or edit the defaut filename which appares in text entry of file save dialog. Upon selecting or editing the default filename the dialog disappears as expected and filename in gchar *filename.


The callback for menuitem to open/save calls open_dialog() and save_dialog() which return a gchar * pointer to the filename.

But what is hapennig is that am able Open/Save first time wihout any problem but if I try to open filechooser dialog window again it is not providing me the filechooser dialog window any more. More over when I try to open second time it is giving the below error.

Can any one here suggest me how do I implement( Desing gtk GUI) gtk app for File Operation. your valuable suggest and help is greatly appriciated.


Thanks in advance.
Nagaraja.

Enter the file save
(recorder:3747): Gtk-CRITICAL **: gtk_widget_grab_default: assertion `GTK_WIDGET_CAN_DEFAULT (widget)' failed
FILE IS /root/oop.wav

Enter the file save
(recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkWindow' (recorder:3514): Gtk-CRITICAL **: gtk_window_set_title: assertion `GTK_IS_WINDOW (window)' failed (recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkFileChooser' (recorder:3514): Gtk-CRITICAL **: gtk_file_chooser_set_do_overwrite_confirmation: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkFileChooser' (recorder:3514): Gtk-CRITICAL **: gtk_file_chooser_set_current_folder: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkFileChooser' (recorder:3514): Gtk-CRITICAL **: gtk_file_chooser_set_current_name: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkDialog' (recorder:3514): Gtk-CRITICAL **: gtk_dialog_run: assertion `GTK_IS_DIALOG (dialog)' failed (recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkWidget' (recorder:3514): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)' failed

inside open
(recorder:3514): Gtk-CRITICAL **: gtk_widget_grab_default: assertion `GTK_WIDGET_CAN_DEFAULT (widget)' failed
The file name in open /root/001.wav
The Selected file in call back /root/001.wav
inside open
(recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkFileChooser' (recorder:3514): Gtk-CRITICAL **: gtk_file_chooser_set_select_multiple: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkFileChooser' (recorder:3514): Gtk-CRITICAL **: gtk_file_chooser_set_current_folder: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkDialog' (recorder:3514): Gtk-CRITICAL **: gtk_dialog_run: assertion `GTK_IS_DIALOG (dialog)' failed (recorder:3514): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkWidget' (recorder:3514): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)' failed
The Selected file in call back (null)
(recorder:3514): GLib-CRITICAL **: g_stpcpy: assertion `src != NULL' failed



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





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