From 5f03bf336634d8548b9dac42417b71b937f887af Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 13 Oct 2006 22:03:29 +0000 Subject: [PATCH] Patch from nmarshall23@gmail.com svn path=/trunk/gtk-sharp/; revision=66665 --- doc/en/Gtk/ComboBox.xml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/en/Gtk/ComboBox.xml b/doc/en/Gtk/ComboBox.xml index 6bc5c80e1..b52fb0091 100644 --- a/doc/en/Gtk/ComboBox.xml +++ b/doc/en/Gtk/ComboBox.xml @@ -416,7 +416,23 @@ class ComboBoxSample Default constructor - + + + +Gtk.ComboBox cb = new ComboBox(); +cb.Clear(); +CellRendererText cell = new CellRendererText(); +cb.PackStart(cell, false); +cb.AddAttribute(cell, "text", 0); +ListStore store = new ListStore(typeof (string)); +cb.Model = store; + +store.AppendValues ("Hello"); +store.AppendValues ("Gtk"); +store.AppendValues ("ComboBox"); + + +