After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 480495 - How to embed realized widgets?
How to embed realized widgets?
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
3.2.x
Other All
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
: 458599 507379 508134 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-09-26 07:43 UTC by Jonas Jonsson
Modified: 2008-01-08 20:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Already realized widget embeding (2.34 KB, patch)
2007-10-15 21:03 UTC, Juan Pablo Ugarte
committed Details | Review
Unrealize before embeding (1.47 KB, patch)
2007-10-18 16:25 UTC, Juan Pablo Ugarte
committed Details | Review

Description Jonas Jonsson 2007-09-26 07:43:57 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

Thread 1 (Thread 47613069767472 (LWP 4721))

  • #0 waitpid
    from /lib/libc.so.6
  • #1 ??
    from /usr/lib/libgnomeui-2.so.0
  • #2 <signal handler called>
  • #3 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #4 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #5 gtk_widget_region_intersect
    from /usr/lib/libgtk-x11-2.0.so.0
  • #6 gtk_container_propagate_expose
    from /usr/lib/libgtk-x11-2.0.so.0
  • #7 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #8 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #9 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #10 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #11 ??
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #14 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #15 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #16 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #17 gdk_window_process_all_updates
    from /usr/lib/libgdk-x11-2.0.so.0
  • #18 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #19 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #20 ??
    from /usr/lib/libglib-2.0.so.0
  • #21 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #22 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #23 ??
  • #24 __libc_start_main
    from /lib/libc.so.6
  • #25 ??
  • #26 ??
  • #27 ??
  • #0 waitpid
    from /lib/libc.so.6


----------- .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
--------------------------------------------------
Comment 1 Juan Pablo Ugarte 2007-10-15 21:03:39 UTC
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.
Comment 2 Juan Pablo Ugarte 2007-10-15 21:06:16 UTC
Now we need to figure out how to embed realized widgets
Comment 3 Tristan Van Berkom 2007-10-15 22:24:36 UTC
we should simply try:

   gtk_widget_unrealize()
   glade_widget_embed()

just to see...
Comment 4 Juan Pablo Ugarte 2007-10-18 16:25:17 UTC
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 :)
Comment 5 Juan Pablo Ugarte 2007-11-14 18:06:29 UTC
*** Bug 458599 has been marked as a duplicate of this bug. ***
Comment 6 Juan Pablo Ugarte 2008-01-05 01:07:27 UTC
*** Bug 507379 has been marked as a duplicate of this bug. ***
Comment 7 Juan Pablo Ugarte 2008-01-08 20:42:55 UTC
*** Bug 508134 has been marked as a duplicate of this bug. ***