Re: GtkBuilder Public API - Last call



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, and how are they related to widgets constructed
by GtkBuilder?

Johan



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