[Wayland-bugs] [Bug 748763] warnings when starting drag from GtkEntries

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Mon May 4 04:53:25 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=748763

--- Comment #6 from Matthias Clasen <mclasen at redhat.com> ---
(In reply to Carlos Garnacho from comment #5)
> (In reply to Matthias Clasen from comment #3)
> > Review of attachment 302730 [details] [review] [review]:
> > 
> > ::: gtk/gtkwindow.c
> > @@ +7333,3 @@
> > +      gtk_container_forall (GTK_CONTAINER (widget),
> > +                            (GtkCallback) gtk_widget_unrealize,
> > +                            NULL);
> > 
> > Hmm, this seems to manually do what the parent_class unrealize would do
> > anyway ?
> 
> Mostly, except destroying the window...
> 
> > 
> > It would be nicer if we could still unconditionally chain up - just clear
> > out the hardcoded_window first ?
> 
> I tried to do that, ideally the window should be removed (and removed from
> being used as gtk_widget_set_window()) before the widget is
> hidden/unrealized, it wasn't any easy at that time without rising a bunch
> other warnings :(
> 
> (In reply to Matthias Clasen from comment #4)
> > Grr, this is all so ugly.
> > 
> > Would it be possible to get GtkWindow out of the loop here, at least for the
> > cases where we are not force by a gtk_drag_set_icon_widget call ? We're
> > mainly using gtk_drag_set_icon_surface/pixbuf/default in GTK+, the one
> > exception being GtkNotebook, and we should really rather fix that.
> 
> We're clearly hitting the limits of the hardcoded_window hack. I guess It'll
> be cleaner overall to expose the drag icon wl_surface on wayland-only api,
> and have some gdk_wayland_window_foreign_new (wl_surface*) for these cases
> where we can avoid window widgets. I'm concerned that we can't behave
> properly for the gtk_drag_set_icon_widget cases though...

May be possible to hack those using gtk_widget_draw, like we do the magnifier
in GtkInspector ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150504/da9f77ed/attachment-0001.html>


More information about the wayland-bugs mailing list