Re: Do I need GtkBuildable?



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]