diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-10-15 16:52:25 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-10-15 16:58:27 -0400 |
commit | 3e9bdf6fd91175907c4b74b7a242a4ee0f5dbb11 (patch) | |
tree | b0aeb0ec06225a7b3071407e050bbaecf6d51de7 /gtk/gtkcomboboxtext.c | |
parent | 3e2a259a78a40c1b84b21b44fcdd198581912805 (diff) | |
download | gtk+-3e9bdf6fd91175907c4b74b7a242a4ee0f5dbb11.tar.gz |
Add docs for GtkComboBoxText
Diffstat (limited to 'gtk/gtkcomboboxtext.c')
-rw-r--r-- | gtk/gtkcomboboxtext.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkcomboboxtext.c b/gtk/gtkcomboboxtext.c index d997723a89..13e17d8799 100644 --- a/gtk/gtkcomboboxtext.c +++ b/gtk/gtkcomboboxtext.c @@ -23,6 +23,24 @@ #include "gtkcellrenderertext.h" #include "gtkcelllayout.h" +/** + * SECTION:gtkcomboboxtext + * @Short_description: A simple, text-only combo box + * @Title: GtkComboBoxText + * @See_also: @GtkComboBox + * + * A GtkComboBoxText is a simple variant of #GtkComboBox that hides + * the model-view complexity for simple text-only use cases. + * + * To create a GtkComboBoxText, use gtk_combo_box_text_new() or + * gtk_combo_box_text_new_with_entry(). + * + * You can add items to a GtkComboBoxText with + * gtk_combo_box_text_append_text(), gtk_combo_box_text_insert_text() + * or gtk_combo_box_text_prepend_text() and remove options with + * gtk_combo_box_text_remove_text(). + */ + G_DEFINE_TYPE (GtkComboBoxText, gtk_combo_box_text, GTK_TYPE_COMBO_BOX); static void |