combobox: Add property annotations

Connect properties, getters, and setters with annotations
This commit is contained in:
Matthias Clasen 2021-02-25 12:22:44 -05:00 committed by Emmanuele Bassi
parent cf6f57b41c
commit d3e8607f58

View File

@ -626,7 +626,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
"editing-canceled");
/**
* GtkComboBox:model:
* GtkComboBox:model: (attributes org.gtk.Property.get=gtk_combo_box_get_model org.gtk.Property.set=gtk_combo_box_set_model)
*
* The model from which the combo box takes its values.
*/
@ -640,7 +640,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
/**
* GtkComboBox:active:
* GtkComboBox:active: (attributes org.gtk.Property.get=gtk_combo_box_get_active org.gtk.Property.set=gtk_combo_box_set_active)
*
* The item which is currently active.
*
@ -690,7 +690,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
/**
* GtkComboBox:button-sensitivity:
* GtkComboBox:button-sensitivity: (attributes org.gtk.Property.get=gtk_combo_box_get_button_sensitivity org.gtk.Property.set=gtk_combo_box_set_button_sensitivity)
*
* Whether the dropdown button is sensitive when
* the model is empty.
@ -705,7 +705,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkComboBox:has-entry:
* GtkComboBox:has-entry: (attributes org.gtk.Property.get=gtk_combo_box_get_has_entry)
*
* Whether the combo box has an entry.
*/
@ -718,7 +718,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
/**
* GtkComboBox:entry-text-column:
* GtkComboBox:entry-text-column: (attributes org.gtk.Property.get=gtk_combo_box_get_entry_text_column org.gtk.Property.set=gtk_combo_box_set_entry_text_column)
*
* The model column to associate with strings from the entry.
*
@ -736,7 +736,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkComboBox:id-column:
* GtkComboBox:id-column: (attributes org.gtk.Property.get=gtk_combo_box_get_id_column org.gtk.Property.set=gtk_combo_box_set_id_column)
*
* The model column that provides string IDs for the values
* in the model, if != -1.
@ -751,7 +751,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkComboBox:active-id:
* GtkComboBox:active-id: (attributes org.gtk.Property.get=gtk_combo_box_get_active_id org.gtk.Property.set=gtk_combo_box_set_active_id)
*
* The value of the ID column of the active row.
*/
@ -765,7 +765,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkComboBox:popup-fixed-width:
* GtkComboBox:popup-fixed-width: (attributes org.gtk.Property.get=gtk_combo_box_get_popup_fixed_width org.gtk.Property.set=gtk_combo_box_set_popup_fixed_width)
*
* Whether the popup's width should be a fixed width matching the
* allocated width of the combo box.
@ -781,7 +781,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkComboBox:child:
* GtkComboBox:child: (attributes org.gtk.Property.get=gtk_combo_box_get_child org.gtk.Property.set=gtk_combo_box_set_child)
*
* The child widget.
*/
@ -1933,7 +1933,7 @@ gtk_combo_box_get_active (GtkComboBox *combo_box)
}
/**
* gtk_combo_box_set_active:
* gtk_combo_box_set_active: (attributes org.gtk.Method.set_property=active)
* @combo_box: a `GtkComboBox`
* @index_: An index in the model passed during construction,
* or -1 to have no active item
@ -2082,7 +2082,7 @@ gtk_combo_box_set_active_iter (GtkComboBox *combo_box,
}
/**
* gtk_combo_box_set_model:
* gtk_combo_box_set_model: (attributes org.gtk.Method.set_property=model)
* @combo_box: A `GtkComboBox`
* @model: (allow-none): A `GtkTreeModel`
*
@ -2148,7 +2148,7 @@ out:
}
/**
* gtk_combo_box_get_model:
* gtk_combo_box_get_model: (attributes org.gtk.Method.get_property=model)
* @combo_box: A `GtkComboBox`
*
* Returns the `GtkTreeModel` of @combo_box.
@ -2504,7 +2504,7 @@ gtk_combo_box_start_editing (GtkCellEditable *cell_editable,
}
/**
* gtk_combo_box_set_popup_fixed_width:
* gtk_combo_box_set_popup_fixed_width: (attributes org.gtk.Method.set_property=popup-fixed-width)
* @combo_box: a `GtkComboBox`
* @fixed: whether to use a fixed popup width
*
@ -2530,13 +2530,11 @@ gtk_combo_box_set_popup_fixed_width (GtkComboBox *combo_box,
}
/**
* gtk_combo_box_get_popup_fixed_width:
* gtk_combo_box_get_popup_fixed_width: (attributes org.gtk.Method.get_property=popup-fixed-width)
* @combo_box: a `GtkComboBox`
*
* Gets whether the popup uses a fixed width.
*
* See [method@Gtk.ComboBox.set_popup_fixed_width].
*
* Returns: %TRUE if the popup uses a fixed width
*/
gboolean
@ -2605,7 +2603,7 @@ gtk_combo_box_set_row_separator_func (GtkComboBox *combo_box,
}
/**
* gtk_combo_box_set_button_sensitivity:
* gtk_combo_box_set_button_sensitivity: (attributes org.gtk.Method.set_property=button-sensitivity)
* @combo_box: a `GtkComboBox`
* @sensitivity: specify the sensitivity of the dropdown button
*
@ -2630,7 +2628,7 @@ gtk_combo_box_set_button_sensitivity (GtkComboBox *combo_box,
}
/**
* gtk_combo_box_get_button_sensitivity:
* gtk_combo_box_get_button_sensitivity: (attributes org.gtk.Method.get_property=button-sensitivity)
* @combo_box: a `GtkComboBox`
*
* Returns whether the combo box sets the dropdown button
@ -2653,7 +2651,7 @@ gtk_combo_box_get_button_sensitivity (GtkComboBox *combo_box)
/**
* gtk_combo_box_get_has_entry:
* gtk_combo_box_get_has_entry: (attributes org.gtk.Method.get_property=has-entry)
* @combo_box: a `GtkComboBox`
*
* Returns whether the combo box has an entry.
@ -2783,7 +2781,7 @@ gtk_combo_box_buildable_get_internal_child (GtkBuildable *buildable,
}
/**
* gtk_combo_box_set_id_column:
* gtk_combo_box_set_id_column: (attributes org.gtk.Method.set_property=id-column)
* @combo_box: A `GtkComboBox`
* @id_column: A column in @model to get string IDs for values from
*
@ -2814,7 +2812,7 @@ gtk_combo_box_set_id_column (GtkComboBox *combo_box,
}
/**
* gtk_combo_box_get_id_column:
* gtk_combo_box_get_id_column: (attributes org.gtk.Method.get_property=id-column)
* @combo_box: A `GtkComboBox`
*
* Returns the column which @combo_box is using to get string IDs
@ -2833,7 +2831,7 @@ gtk_combo_box_get_id_column (GtkComboBox *combo_box)
}
/**
* gtk_combo_box_get_active_id:
* gtk_combo_box_get_active_id: (attributes org.gtk.Method.get_property=active-id)
* @combo_box: a `GtkComboBox`
*
* Returns the ID of the active row of @combo_box.
@ -2887,7 +2885,7 @@ gtk_combo_box_get_active_id (GtkComboBox *combo_box)
}
/**
* gtk_combo_box_set_active_id:
* gtk_combo_box_set_active_id: (attributes org.gtk.Method.set_property=active-id)
* @combo_box: a `GtkComboBox`
* @active_id: (allow-none): the ID of the row to select, or %NULL
*
@ -2962,7 +2960,7 @@ gtk_combo_box_get_popup (GtkComboBox *combo_box)
}
/**
* gtk_combo_box_set_child:
* gtk_combo_box_set_child: (attributes org.gtk.Method.set_property=child)
* @combo_box: a `GtkComboBox`
* @child: (allow-none): the child widget
*
@ -2987,7 +2985,7 @@ gtk_combo_box_set_child (GtkComboBox *combo_box,
}
/**
* gtk_combo_box_get_child:
* gtk_combo_box_get_child: (attributes org.gtk.Method.get_property=child)
* @combo_box: a `GtkComboBox`
*
* Gets the child widget of @combo_box.