Hi
Here in python a complete sample using autocompletion:Martin (OpenGeoMap) wrote: entry = gtk.Entry() completion = gtk.EntryCompletion() entry.set_completion(completion) liststore = gtk.ListStore(gobject.TYPE_STRING, gtk.gdk.Pixbuf) completion.set_model(liststore) pixbufcell = gtk.CellRendererPixbuf() completion.pack_start(pixbufcell) completion.add_attribute(pixbufcell, 'pixbuf', 1) # create a gtk.CellRendererText and pack it in the completion. Also set the # 'text' attribute completion.set_text_column(0) # load up the liststore with string - pixbuf data - assuming pixbuf created the same for ruby/gnome, monogtk#, gtkmm, gtk, etc,.. liststore.append(['string text', pixbuf]) You need a entry and also the EntryCompletion class. The widget you can see is the gtk::entry http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1EntryCompletion.html Regards. |