Skip to content

Instantly share code, notes, and snippets.

@colonelpanic8
Created April 6, 2018 22:18
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 colonelpanic8/dc934beea4045675dd8ba28f43d137f8 to your computer and use it in GitHub Desktop.
Save colonelpanic8/dc934beea4045675dd8ba28f43d137f8 to your computer and use it in GitHub Desktop.
<function name="property_change"
c:identifier="gdk_property_change"
introspectable="0">
<doc xml:space="preserve">Changes the contents of a property on a window.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="window" transfer-ownership="none">
<doc xml:space="preserve">a #GdkWindow</doc>
<type name="Window" c:type="GdkWindow*"/>
</parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">the property to change</doc>
<type name="Atom" c:type="GdkAtom"/>
</parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">the new type for the property. If @mode is
%GDK_PROP_MODE_PREPEND or %GDK_PROP_MODE_APPEND, then this
must match the existing type or an error will occur.</doc>
<type name="Atom" c:type="GdkAtom"/>
</parameter>
<parameter name="format" transfer-ownership="none">
<doc xml:space="preserve">the new format for the property. If @mode is
%GDK_PROP_MODE_PREPEND or %GDK_PROP_MODE_APPEND, then this
must match the existing format or an error will occur.</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="mode" transfer-ownership="none">
<doc xml:space="preserve">a value describing how the new data is to be combined
with the current data.</doc>
<type name="PropMode" c:type="GdkPropMode"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">the data (a `guchar *`
`gushort *`, or `gulong *`,
depending on @format), cast to a `guchar *`.</doc>
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="nelements" transfer-ownership="none">
<doc xml:space="preserve">the number of elements of size determined by the format,
contained in @data.</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</function>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment