Skip to content

Commit

Permalink
Merge pull request #186 from gtk-rs/create-pull-request/patch
Browse files Browse the repository at this point in the history
Update GIR files (2024-02-04)
  • Loading branch information
bilelmoussaoui committed Feb 4, 2024
2 parents 4d83970 + f4a7b95 commit cfc0305
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 2 deletions.
37 changes: 37 additions & 0 deletions Atk-1.0.gir
Original file line number Diff line number Diff line change
Expand Up @@ -2256,6 +2256,25 @@ ask for the document type if it applies.</doc-deprecated>
</parameter>
</parameters>
</method>
<glib:signal name="document-attribute-changed" when="last" version="2.52">
<doc xml:space="preserve">The "document-attribute-changed" signal should be emitted when there is a
change to one of the document attributes returned by
atk_document_get_attributes.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">the name of the attribute being modified, or %NULL if not
available.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">the attribute's new value, or %null if not available.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="load-complete" when="last">
<doc xml:space="preserve">The 'load-complete' signal is emitted when a pending load of
a static document has completed. This signal is to be
Expand Down Expand Up @@ -5911,6 +5930,24 @@ Depcrecated (2.50): Use AtkObject::notification instead.</doc>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="attribute-changed" when="last" version="2.52">
<doc xml:space="preserve">The "attribute-changed" signal should be emitted when one of an object's
attributes changes.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">the name of the attribute being modified, or %NULL if not
available.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">the attribute's new value, or %null if not available.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="children-changed" when="last" detailed="1">
<doc xml:space="preserve">The signal "children-changed" is emitted when a child is added or
removed from an object. It supports two details: "add" and
Expand Down
31 changes: 29 additions & 2 deletions Gdk-4.0.gir
Original file line number Diff line number Diff line change
Expand Up @@ -15593,7 +15593,7 @@ This can be used to identify a monitor in the UI.</doc>
display coordinate space.

The returned geometry is in &#x201D;application pixels&#x201D;, not in
&#x201D;device pixels&#x201D; (see [method@Gdk.Monitor.get_scale_factor]).</doc>
&#x201D;device pixels&#x201D; (see [method@Gdk.Monitor.get_scale]).</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
Expand Down Expand Up @@ -15673,6 +15673,25 @@ is returned as 60000.</doc>
</instance-parameter>
</parameters>
</method>
<method name="get_scale" c:identifier="gdk_monitor_get_scale" glib:get-property="scale" version="4.14">
<attribute name="org.gtk.Method.get_property" value="scale"/>
<doc xml:space="preserve">Gets the internal scale factor that maps from monitor coordinates
to device pixels.

This can be used if you want to create pixel based data for a
particular monitor, but most of the time you&#x2019;re drawing to a surface
where it is better to use [method@Gdk.Surface.get_scale] instead.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the scale</doc>
<type name="gdouble" c:type="double"/>
</return-value>
<parameters>
<instance-parameter name="monitor" transfer-ownership="none">
<doc xml:space="preserve">a `GdkMonitor`</doc>
<type name="Monitor" c:type="GdkMonitor*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_scale_factor" c:identifier="gdk_monitor_get_scale_factor" glib:get-property="scale-factor">
<attribute name="org.gtk.Method.get_property" value="scale-factor"/>
<doc xml:space="preserve">Gets the internal scale factor that maps from monitor coordinates
Expand Down Expand Up @@ -15782,9 +15801,17 @@ is unplugged or removed.</doc>
<doc xml:space="preserve">The refresh rate, in milli-Hertz.</doc>
<type name="gint" c:type="gint"/>
</property>
<property name="scale" version="4.14" transfer-ownership="none" getter="get_scale" default-value="1.000000">
<attribute name="org.gtk.Property.get" value="gdk_monitor_get_scale"/>
<doc xml:space="preserve">The scale of the monitor.</doc>
<type name="gdouble" c:type="gdouble"/>
</property>
<property name="scale-factor" transfer-ownership="none" getter="get_scale_factor" default-value="1">
<attribute name="org.gtk.Property.get" value="gdk_monitor_get_scale_factor"/>
<doc xml:space="preserve">The scale factor.</doc>
<doc xml:space="preserve">The scale factor.

The scale factor is the next larger integer,
compared to [property@Gdk.Surface:scale].</doc>
<type name="gint" c:type="gint"/>
</property>
<property name="subpixel-layout" transfer-ownership="none" getter="get_subpixel_layout" default-value="GDK_SUBPIXEL_LAYOUT_UNKNOWN">
Expand Down

0 comments on commit cfc0305

Please sign in to comment.