Johan Dahlin wrote:
> Yevgen Muntyan wrote:
>> Johan Dahlin wrote:
>>> [snip]
>>>   
>>
>>> /**
>>>  * gtk_buildable_set_name:
>>>  * @buildable: a #GtkBuildable
>>>  * @name: name to set
>>>  *
>>>  * Sets the name of the buildable object, it's used to synchronize 
>>> the name
>>>  * if the object already has it's own concept of name.
>>>  *
>>>  * #GtkWidget implements this to map the buildable name to the 
>>> widget name
>>>  *
>>>  * Since: 2.12
>>>  **/
>>> void      gtk_buildable_set_name           (GtkBuildable        
>>> *buildable,
>>>                                             const gchar         *name);
>>>
>>> /**
>>>  * gtk_buildable_get_name:
>>>  * @buildable: a #GtkBuildable
>>>  *
>>>  * Returns: the buildable name, the name which was set in
>>>  * the <link linkend="BUILDER-UI">GtkBuilder UI definition</link> 
>>> used to
>>>  * construct the @buildable.
>>>  *
>>>  * #GtkWidget implements this to map the buildable name to the 
>>> widget name
>>>  *
>>>  * Since: 2.12
>>>  **/
>>> const gchar * gtk_buildable_get_name       (GtkBuildable        
>>> *buildable);
>>>   
>>
>> The comments are not quite clear, it sounds like all widgets will
>> get gtk_widget_set_name(widget, "name_from_xml_file") called,
>> which would be wrong since we have themes, where widget name
>> means something special. Or what does it mean "Sets the name of
>> the buildable object, it's used to synchronize the name if the object
>> already has it's own concept of name." ("concept of name" part). 
> I can't quite understand your comment, how are widget names
> special to themes, 

Sorry for not being clear, I meant how widget names are used in rc
files/strings. Gtk docs seem to imply that widget names have
other uses, perhaps there are some, don't know.

> and how are they related to widgets constructed
> by GtkBuilder?

It was my question actually. "#GtkWidget implements this to map
the buildable name to the widget name" - what does it mean? Does
GtkBuilder call gtk_widget_set_name(widget, "name_from_xml_file")
for constructed widgets? Or something else?

Yevgen

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

Reply via email to