Using GtkFileChooserWidget



Hi list,

I wonder if anyone here has ever used the GtkFileChooserWidget directly?? When I create the widget and add it to a window everything goes ok - but if I close the window (I did add an extra "g_object_ref(widget);" to the widget keeping it alive) and open a new window adding the same widget to it - or - alternatively remove the GtkFileChooserWidget from the window and re-adds the very same widget then I get errors like:

(DiamondBOX:18575): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertion `path != NULL' failed

(DiamondBOX:18575): Gtk-CRITICAL **: gtk_list_store_set_valist: assertion `VALID_ITER (iter, list_store)' failed

(DiamondBOX:18575): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertion `path != NULL' failed

(DiamondBOX:18575): Gtk-CRITICAL **: gtk_list_store_set_valist: assertion `VALID_ITER (iter, list_store)' failed

(DiamondBOX:18575): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertion `path != NULL' failed

(DiamondBOX:18575): Gtk-CRITICAL **: gtk_list_store_set_valist: assertion `VALID_ITER (iter, list_store)' failed

when displaying the window. Is this expected behaviour or a bug??? Perhaps I could do something to prepare the widget for the later re-appearance??

   best regards - Nikolaj Thygesen




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