Re: Installing property in interface



On Wed, Jan 31, 2007 at 10:02:26PM +0100, Tomasz Jankowski wrote:
I'm trying to install property into main interface, but when I run program
it always display me this warning:

(lt-goofysender:10709): GLib-GObject-WARNING **: When installing property:
type `GoofyFileTransfer' already has a property named `transfer-status'

The interface base init function can be called multiple
times (at least once every time a class implementing this
interface is initialized), but it obviously has to install
the property only once.  Therefore it must remember it has
been already called and do nothing in subseqent calls.  See
Interface Initialization in

  http://developer.gnome.org/doc/API/2.0/gobject/gtype-non-instantiable-classed.html

There is even an example...

Yeti


--
Whatever.



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