Skip to content

Instantly share code, notes, and snippets.

@ik5
Created August 31, 2012 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ik5/3549885 to your computer and use it in GitHub Desktop.
Save ik5/3549885 to your computer and use it in GitHub Desktop.
Here is part of the XML code from the Gtk3.gir file relating to the caption of the button:
<class name="Button"
c:symbol-prefix="button"
c:type="GtkButton"
parent="Bin"
glib:type-name="GtkButton"
glib:get-type="gtk_button_get_type"
glib:type-struct="ButtonClass">
<implements name="Atk.ImplementorIface"/>
<implements name="Actionable"/>
<implements name="Activatable"/>
<implements name="Buildable"/>
<constructor name="new" c:identifier="gtk_button_new">
<return-value transfer-ownership="none">
<type name="Widget" c:type="GtkWidget*"/>
</return-value>
</constructor>
<method name="get_label" c:identifier="gtk_button_get_label">
<return-value transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</return-value>
</method> <method name="set_label" c:identifier="gtk_button_set_label">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="label" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<property name="label" construct="1"
transfer-ownership="none">
<type name="utf8"/>
</property>
</class>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment