[Glade-users] glade and/or gtkmm, insert a FileChooserDialog inside a Notebook tab



Hi Nicolas!

Putting a file chooser widget into a notebook works for me in Glade 3.18.3:

https://gist.github.com/f6b38748572903a17078

Maybe you are mixing up "file chooser dialog" with "file chooser widget".

atb, Tobias

2015-01-29 9:23 GMT+01:00 Nicolas J?ger <jagernicolas at legtux.org>:

Hi,

I would like to have a `FileChooserDialog` in a tab of a `Notebook`
when I summon it. When I try to move the `FileChooserDialog` over the
`Notebook`, glade seems to runs an infinite loop, in the console I get
continuously :

?
?(glade:12662): Gtk-CRITICAL **: gtk_container_remove: assertion
?'gtk_widget_get_parent (widget) == GTK_WIDGET (container) ||
?GTK_IS_ASSISTANT (container) || GTK_IS_ACTION_BAR (container)' failed
?

I tried inside my program to get what I want with that code :

?
?  Notebook->append_page( FileChooserDialog, "whatever" );
?

but I got these two messages :

?
?Gtk-CRITICAL **: gtk_widget_set_child_visible:
?assertion !gtk_widget_is_toplevel (widget)' failed
?Gtk-WARNING **: Can't set a parent on a toplevel widget
?

there is a way to do what I want ?

regards,
/nicoo
_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/glade-users/attachments/20150129/fa71d6b5/attachment.html>




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