GNOME Bugzilla – Bug 480495
How to embed realized widgets?
Last modified: 2008-01-08 20:42:55 UTC
Version: 3.2.2 What were you doing when the application crashed? Clicked the GtkInputDialog button in the toolbar. Distribution: Gentoo Base System release 1.12.9 Gnome Release: 2.18.3 2007-09-25 (Gentoo) BugBuddy Version: 2.18.1 System: Linux 2.6.22-gentoo-r5 #3 SMP Sat Sep 15 01:28:27 CEST 2007 x86_64 X Vendor: The X.Org Foundation X Vendor Release: 10300000 Selinux: No Accessibility: Disabled GTK+ Theme: MurrinaGilouche Icon Theme: Nuovo Memory status: size: 271740928 vsize: 271740928 resident: 56410112 share: 24244224 rss: 56410112 rss_rlim: 18446744073709551615 CPU usage: start_time: 1190791902 rtime: 1313 utime: 1233 stime: 80 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/bin/glade-3' (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 47613069767472 (LWP 4721)] 0x00002b4dc4b0f11a in waitpid () from /lib/libc.so.6
+ Trace 165571
Thread 1 (Thread 47613069767472 (LWP 4721))
----------- .xsession-errors --------------------- ** (glade-3:4721): CRITICAL **: Cannot embed a window that is already realized or embedded (glade-3:4721): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_CONTAINER (container)' failed (glade-3:4721): Gtk-WARNING **: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead (glade-3:4721): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_CONTAINER (container)' failed (glade-3:4721): Gtk-WARNING **: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead ** (glade-3:4721): CRITICAL **: Cannot embed a window that is already realized or embedded (glade-3:4721): Gtk-WARNING **: Can't set a parent on a toplevel widget --------------------------------------------------
Created attachment 97260 [details] [review] Already realized widget embeding I have commited this patch so this bug is not a crasher anymore. All its does it refuses to reparent a widget if it cant embed it. So in this case the input dialog wont be embeded, but you still will be able to use it.
Now we need to figure out how to embed realized widgets
we should simply try: gtk_widget_unrealize() glade_widget_embed() just to see...
Created attachment 97427 [details] [review] Unrealize before embeding Hey, it works! Currently the only widget that is already realized is GtkInputDialog. I hope this is the first and last one :)
*** Bug 458599 has been marked as a duplicate of this bug. ***
*** Bug 507379 has been marked as a duplicate of this bug. ***
*** Bug 508134 has been marked as a duplicate of this bug. ***