2007/1/31, David Nečas (Yeti) <[EMAIL PROTECTED]>:
>
> 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.
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>

Please don't say me, that I was so stupid all the time :| Let say that we
have such function:

static void
maman_ibaz_base_init (gpointer g_iface)
{
  static gboolean initialized = FALSE;

  if (!initialized) {
    /* create interface signals here. */
    initialized = TRUE;
  }
}

I'm quite young programmer (it's my hobby only), but I'm almost sure, that
all variables declared inside function are destroyed when function execution
if finished. Does 'static' keyword changes this behavior?!

-- 
Cya!
Tom
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to