From: Daniel Carrera Date: 2003-02-20T14:06:29+09:00 Subject: CList in Ruby-Gnome2? Hello, Does Gnome2 no longer have CList? What's the easiest way to get a list widget in Gnome2? The simplest I've managed to write uses TreeView: ---------------- tree.rb ------------- # # Create the TreeStore and TreeView. # tree = Gtk::TreeStore.new( String ) render = Gtk::CellRendererText.new column = Gtk::TreeViewColumn.new( "Contacts", render, {:text => 0} ) tree_view = Gtk::TreeView.new( tree ) tree_view.append_column( column ) window.add( tree_view ) # # Build tree. # jeffrey = tree.append(nil).set_value( 0, "Jeffrey" ) melissa = tree.append(nil).set_value( 0, "Melissa" ) sandy = tree.append(nil).set_value( 0, "Sandy" ) -------------------------------------- Is this the simplest it gets? Because it's not very simple. I'd like to see a list-type widget which could be used somwhat like this: list = Gtk::CList window.add(list) jeffrey = list.append( "Jeffrey" ) melissa = list.append( "Melissa" ) sandy = list.append( "Sandy" ) That would be a lot nicer. Is there any such widget? I can't find any in the documentation, but I can't believe that Gtk+2 doesn't have a list widget. Any help would be appreciated. -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137