qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/2] gtk: avoid gd_widget_reparent with gtk 3.14


From: Daniel P. Berrange
Subject: Re: [Qemu-devel] [PATCH 2/2] gtk: avoid gd_widget_reparent with gtk 3.14+
Date: Thu, 23 Oct 2014 17:31:46 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Oct 23, 2014 at 06:26:21PM +0200, Paolo Bonzini wrote:
> 
> 
> On 10/23/2014 05:25 PM, Gerd Hoffmann wrote:
> > gtk_widget_reparent is depricated in gtk 3.14.  Unfortunaly the
> > gtk_widget_{ref,unref} functions needed to to the same manually
> > without having the widget destroyed while it has no parent are
> > pretty new.  So there is no way around #ifdef'ing the code,
> > otherwise it breaks with older gtk versions,
> 
> I cannot find gtk_widget_ref/unref in
> https://developer.gnome.org/gtk3/stable/GtkWidget.html.  How do they
> differ from g_object_ref(G_OBJECT(widget))?

Indeed, it doesn't exist in GTK3 so I'm not sure how this built
successfully on GTK3 !  It was deprecated in favour of g_object_ref
from 2.12 and deleted in 3.x series.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]