Skip to content

Commit

Permalink
Merge pull request #160 from gtk-rs/create-pull-request/patch
Browse files Browse the repository at this point in the history
Update GIR files (2023-07-02)
  • Loading branch information
bilelmoussaoui committed Jul 2, 2023
2 parents e5c2bce + ca19188 commit 744be9f
Showing 1 changed file with 55 additions and 18 deletions.
73 changes: 55 additions & 18 deletions Gtk-4.0.gir
Original file line number Diff line number Diff line change
Expand Up @@ -27125,6 +27125,20 @@ if [property@Gtk.DropDown:list-factory] is not set.</doc>
</instance-parameter>
</parameters>
</method>
<method name="get_search_match_mode" c:identifier="gtk_drop_down_get_search_match_mode" glib:get-property="search-match-mode" version="4.12">
<attribute name="org.gtk.Method.get_property" value="search-match-mode"/>
<doc xml:space="preserve">Returns the match mode that the search filter is using.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the match mode of the search filter</doc>
<type name="StringFilterMatchMode" c:type="GtkStringFilterMatchMode"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a `GtkDropDown`</doc>
<type name="DropDown" c:type="GtkDropDown*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_selected" c:identifier="gtk_drop_down_get_selected" glib:get-property="selected">
<attribute name="org.gtk.Method.get_property" value="selected"/>
<doc xml:space="preserve">Gets the position of the selected item.</doc>
Expand Down Expand Up @@ -27277,6 +27291,23 @@ a value type of %G_TYPE_STRING.</doc>
</parameter>
</parameters>
</method>
<method name="set_search_match_mode" c:identifier="gtk_drop_down_set_search_match_mode" glib:set-property="search-match-mode" version="4.12">
<attribute name="org.gtk.Method.set_property" value="search-match-mode"/>
<doc xml:space="preserve">Sets the match mode for the search filter.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a `GtkDropDown`</doc>
<type name="DropDown" c:type="GtkDropDown*"/>
</instance-parameter>
<parameter name="search_match_mode" transfer-ownership="none">
<doc xml:space="preserve">the new match mode</doc>
<type name="StringFilterMatchMode" c:type="GtkStringFilterMatchMode"/>
</parameter>
</parameters>
</method>
<method name="set_selected" c:identifier="gtk_drop_down_set_selected" glib:set-property="selected">
<attribute name="org.gtk.Method.set_property" value="selected"/>
<doc xml:space="preserve">Selects the item at the given position.</doc>
Expand Down Expand Up @@ -27357,6 +27388,12 @@ If this is not set, [property@Gtk.DropDown:factory] is used.</doc>
<doc xml:space="preserve">Model for the displayed items.</doc>
<type name="Gio.ListModel"/>
</property>
<property name="search-match-mode" version="4.12" writable="1" transfer-ownership="none" setter="set_search_match_mode" getter="get_search_match_mode" default-value="GTK_STRING_FILTER_MATCH_MODE_PREFIX">
<attribute name="org.gtk.Property.get" value="gtk_drop_down_get_search_match_mode"/>
<attribute name="org.gtk.Property.set" value="gtk_drop_down_set_search_match_mode"/>
<doc xml:space="preserve">The match mode for the search filter.</doc>
<type name="StringFilterMatchMode"/>
</property>
<property name="selected" writable="1" transfer-ownership="none" setter="set_selected" getter="get_selected" default-value="4294967295">
<attribute name="org.gtk.Property.get" value="gtk_drop_down_get_selected"/>
<attribute name="org.gtk.Property.set" value="gtk_drop_down_set_selected"/>
Expand Down Expand Up @@ -50928,7 +50965,7 @@ of the icon size set by [method@Gtk.Image.set_from_icon_name].</doc>
</method>
<property name="file" writable="1" transfer-ownership="none" default-value="NULL">
<attribute name="org.gtk.Property.set" value="gtk_image_set_from_file"/>
<doc xml:space="preserve">The `GFile to display.</doc>
<doc xml:space="preserve">The `GFile` to display.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="gicon" writable="1" transfer-ownership="none" getter="get_gicon">
Expand Down Expand Up @@ -87124,9 +87161,9 @@ See also: [method@Gtk.TreeSortable.set_sort_column_id]</doc>
<doc xml:space="preserve">The `GtkText` widget is a single-line text entry widget.

`GtkText` is the common implementation of single-line text editing
that is shared between `GtkEntry`, `GtkPasswordEntry`, `GtkSpinButton`
and other widgets. In all of these, `GtkText` is used as the delegate
for the [iface@Gtk.Editable] implementation.
that is shared between [class@Gtk.Entry], [class@Gtk.PasswordEntry],
[class@Gtk.SpinButton], and other widgets. In all of these, `GtkText` is
used as the delegate for the [iface@Gtk.Editable] implementation.

A fairly large set of key bindings are supported by default. If the
entered text is longer than the allocation of the widget, the widget
Expand All @@ -87140,10 +87177,10 @@ in the current font, but it can be changed with
[method@Gtk.Text.set_invisible_char].

If you are looking to add icons or progress display in an entry, look
at `GtkEntry`. There other alternatives for more specialized use cases,
such as `GtkSearchEntry`.
at [class@Gtk.Entry]. There other alternatives for more specialized use
cases, such as [class@Gtk.SearchEntry].

If you need multi-line editable text, look at `GtkTextView`.
If you need multi-line editable text, look at [class@Gtk.TextView].

# CSS nodes

Expand All @@ -87157,25 +87194,25 @@ text[.read-only]
&#x2570;&#x2500;&#x2500; [window.popup]
```

`GtkText` has a main node with the name text. Depending on the properties
of the widget, the .read-only style class may appear.
`GtkText` has a main node with the name `text`. Depending on the properties
of the widget, the `.read-only` style class may appear.

When the entry has a selection, it adds a subnode with the name selection.
When the entry has a selection, it adds a subnode with the name `selection`.

When the entry is in overwrite mode, it adds a subnode with the name
block-cursor that determines how the block cursor is drawn.
`block-cursor` that determines how the block cursor is drawn.

The CSS node for a context menu is added as a subnode below text as well.
The CSS node for a context menu is added as a subnode with the name `popup`.

The undershoot nodes are used to draw the underflow indication when content
is scrolled out of view. These nodes get the .left and .right style classes
The `undershoot` nodes are used to draw the underflow indication when content
is scrolled out of view. These nodes get the `.left` or `.right` style class
added depending on where the indication is drawn.

When touch is used and touch selection handles are shown, they are using
CSS nodes with name cursor-handle. They get the .top or .bottom style class
depending on where they are shown in relation to the selection. If there is
just a single handle for the text cursor, it gets the style class
.insertion-cursor.
CSS nodes with name `cursor-handle`. They get the `.top` or `.bottom` style
class depending on where they are shown in relation to the selection. If
there is just a single handle for the text cursor, it gets the style class
`.insertion-cursor`.

# Accessibility

Expand Down

0 comments on commit 744be9f

Please sign in to comment.