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 740812 - Gtk-CRITICAL **: gtk_widget_is_ancestor: assertion 'GTK_IS_WIDGET (widget)' failed
Gtk-CRITICAL **: gtk_widget_is_ancestor: assertion 'GTK_IS_WIDGET (widget)' f...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkPopover
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-11-27 15:02 UTC by Cédric Bellegarde
Modified: 2014-11-28 04:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Cédric Bellegarde 2014-11-27 15:02:52 UTC
Hello,

i'm working on lollypop, a pygtk3 software.

I've got a popover containing a stack of GtkScrolledWindow

When calling set_visible_child(), i've got:
Gtk-CRITICAL **: gtk_widget_is_ancestor: assertion 'GTK_IS_WIDGET (widget)' failed

Comes from gtkpopover.c window_focus_in():

focus = gtk_window_get_focus (GTK_WINDOW (widget));

focus is NULL in my case.

It's only happening if i've got this:
- GtkPopover => GtkStack => GtkScrolledWindows => MyWidget

but not if i've got this:
- GtkPopover => GtkScrolledWindow => GtkStack => MyWidgets