*
* 
*
- * The `GtkDropDown` displays the selected choice.
+ * The `GtkDropDown` displays the [selected][property@Gtk.DropDown:selected]
+ * choice.
*
* The options are given to `GtkDropDown` in the form of `GListModel`
* and how the individual options are represented is determined by
* use [method@Gtk.DropDown.set_enable_search].
*
* Here is a UI definition example for `GtkDropDown` with a simple model:
+ *
* ```xml
* <object class="GtkDropDown">
* <property name="model">
* To learn more about the list widget framework, see the
* [overview](section-list-widget.html).
*
- * # CSS nodes
+ * ## CSS nodes
*
* `GtkDropDown` has a single CSS node with name dropdown,
* with the button and popover nodes as children.
*
- * # Accessibility
+ * ## Accessibility
*
* `GtkDropDown` uses the %GTK_ACCESSIBLE_ROLE_COMBO_BOX role.
*/
GtkWidget *search_entry;
GtkExpression *expression;
-
+
GtkStringFilterMatchMode search_match_mode;
guint enable_search : 1;
case PROP_SHOW_ARROW:
g_value_set_boolean (value, gtk_drop_down_get_show_arrow (self));
break;
-
+
case PROP_SEARCH_MATCH_MODE:
g_value_set_enum (value, gtk_drop_down_get_search_match_mode (self));
break;
case PROP_SHOW_ARROW:
gtk_drop_down_set_show_arrow (self, g_value_get_boolean (value));
break;
-
+
case PROP_SEARCH_MATCH_MODE:
gtk_drop_down_set_search_match_mode (self, g_value_get_enum (value));
break;
*/
properties[PROP_SELECTED] =
g_param_spec_uint ("selected", NULL, NULL,
- 0, G_MAXUINT, GTK_INVALID_LIST_POSITION,
- G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
+ 0, G_MAXUINT, GTK_INVALID_LIST_POSITION,
+ G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
/**
* GtkDropDown:selected-item: (attributes org.gtk.Property.get=gtk_drop_down_get_selected_item)
*/
properties[PROP_SELECTED_ITEM] =
g_param_spec_object ("selected-item", NULL, NULL,
- G_TYPE_OBJECT,
- G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+ G_TYPE_OBJECT,
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
/**
* GtkDropDown:enable-search: (attributes org.gtk.Property.get=gtk_drop_down_get_enable_search org.gtk.Property.set=gtk_drop_down_set_enable_search)
g_param_spec_boolean ("show-arrow", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
-
+
/**
* GtkDropDown:search-match-mode: (attributes org.gtk.Property.get=gtk_drop_down_get_search_match_mode org.gtk.Property.set=gtk_drop_down_set_search_match_mode)
*
GTK_TYPE_STRING_FILTER_MATCH_MODE,
GTK_STRING_FILTER_MATCH_MODE_PREFIX,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
-
+
g_object_class_install_properties (gobject_class, N_PROPS, properties);
/**
self->show_arrow = gtk_widget_get_visible (self->arrow);
set_default_factory (self);
-
+
self->search_match_mode = GTK_STRING_FILTER_MATCH_MODE_PREFIX;
}
* @search_match_mode: the new match mode
*
* Sets the match mode for the search filter.
- *
+ *
* Since: 4.12
*/
void
* Returns the match mode that the search filter is using.
*
* Returns: the match mode of the search filter
- *
+ *
* Since: 4.12
*/
GtkStringFilterMatchMode