[Glade-users] objects properties in a custom catalog



On Fri, Aug 7, 2009 at 12:18 PM, Alexey
Kurochkin<alexey.kurochkin at pathfinderlwd.com> wrote:
On Thu, 2009-08-06 at 18:30 -0400, Tristan Van Berkom wrote:
[...]
For custom widgets you can work around this by implementing
GtkBuildableIface set_name and get_name functions. I think they should
have been properly called set_id and get_id to prevent any confusion,
but what's done is done - they're part of the API now. As of the widget
setting it's name from this id, it is totally wrong.


Tend to agree here, looks like GtkBuildable makes it possible, whether
GtkBuildable reffers to the idea as "name" or "id" is just an arbitrary name,
the fact that GtkWidget applies this name to be used as the actual widget
name is ok also (its probably mostly there to mimic libglade style xml and
allow for less bugs in transition, I dont know).

I would say the fact that the GtkBuildable implementation for GtkWidget
doesnt explicitly let you override the "name" of a widget aside from its
identifier is a bug (probably its applied at the end of the parse phase
without looking to see if name was already setup while parsing properties).

Should file that one against GtkBuilder, unless there is some explicit policy
that I dont know about then its another silly bug.

Regards,
         -Tristan




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