Re: Do I need GtkBuildable?



Thanks,

Good to know that this is correct.I copied the text from the html docs.
So this info is misleading. Maybe it should get rewritten. It is the
first sentence in the Description section.



Am Samstag, den 23.01.2010, 13:08 -0500 schrieb Tristan Van Berkom:
> On Sat, Jan 23, 2010 at 1:53 PM, Martin Kalbfuß <ma kalbfuss web de>
wrote:
> > Hi again,
> >
> > I designed an object based on gobject. I added it to an interface
XML
> > file. When loading it, The object is created, and I can use it.
> >
> > <interface>
> >
> >  <object class="GtkListStore" id="list_model" >
> >    <columns>
> >      <column type="GdkPixbuf" />
> >      <column type="gchararray" />
> >      <column type="guint" />
> >      <column type="guint" />
> >    </columns>
> >  </object>
> >
> >  <object class="BitmapList" id="bitmap_list" />
> >
> > </interface>
> >
> > While reading the docs, I found this:
> >
> > In order to allow construction from a GtkBuilder UI description, an
> > object class must implement the GtkBuildable interface.
> >
> 
> Are you sure it says exactly that in the docs ? where, I dont see it
> in GtkBuilder.html...
> 
> No an object does not ever need to be GtkBuildable to be buildable by
> the builder,
> GtkBuildable lets you extend the load proceedure and do customized
> object deserialization.
> 
> Cheers,
>          -Tristan
> 
> > But I didn't do that. Is this an undocumented and correct behaviour,
or
> > does it work by accident?
> >
> > Thanks.
> >
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> >





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