[gtk: 1/2] Documentation update for combo_box_new_with_entry
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Documentation update for combo_box_new_with_entry
- Date: Fri, 4 Jun 2021 04:02:49 +0000 (UTC)
commit 4d894e08f7caad2983d4af8ed9a06aeab6fc3f88
Author: DarkTrick <notebook22312 gmail com>
Date: Fri Jun 4 04:02:48 2021 +0000
Documentation update for combo_box_new_with_entry
gtk/gtkcombobox.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index a8a3842aca..70d0f637a3 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1851,6 +1851,10 @@ gtk_combo_box_new (void)
*
* Creates a new empty `GtkComboBox` with an entry.
*
+ * In order to use a combo box with entry, you need to tell it
+ * which column of the model contains the text for the entry
+ * by calling [method@Gtk.ComboBox.set_entry_text_column].
+ *
* Returns: A new `GtkComboBox`
*/
GtkWidget *
@@ -1885,6 +1889,8 @@ gtk_combo_box_new_with_model (GtkTreeModel *model)
*
* Creates a new empty `GtkComboBox` with an entry and a model.
*
+ * See also [ctor@Gtk.ComboBox.new_with_entry].
+ *
* Returns: A new `GtkComboBox`
*/
GtkWidget *
@@ -2674,7 +2680,10 @@ gtk_combo_box_get_has_entry (GtkComboBox *combo_box)
* the internal entry
*
* Sets the model column which @combo_box should use to get strings
- * from to be @text_column.
+ * from to be @text_column.
+ *
+ * For this column no separate
+ * [class@Gtk.CellRenderer] is needed.
*
* The column @text_column in the model of @combo_box must be of
* type %G_TYPE_STRING.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]