Re: A question about deprecated widget



David NeÄas (Yeti) napisaÅ(a):
On Mon, Dec 18, 2006 at 07:33:34PM +0100, galtgendo o2 pl wrote:
1. One of the parts of GTK_COMBO seemed to be a scrolled window, what would be the simplest combination of widgets to have similar look-and-feel, cause GTK_COMBO_BOX with longer lists is simply ugly.

This is a matter of Gtk+ theme.  Try setting
"appears-as-list" style property of GtkComboBox to 1 in your
gtkrc-2.0.

2. As GTK_COMBO_BOX uses GTK_LIST_STORE, what would be the most efficient way to transform a GList or char** to such thing.

Use gtk_combo_box_new_text() to create a simple text-only
combo and fill it with the strings.  Then throw away the
GList or array.
You got it all wrong.
As "appears-as-list" is a style property, it's read-only, so it would be pointless for me. The effect I'm looking for is a non-depreciated widget combination that would look and act like GTK_COMBO did, I mean a scrolled window and all, preferably one with number of rows set by me. As it goes for the second point, glist (char**) is a result of calling a function from a separate library, so I'm interested in a way of converting it back and forth in an efficient way. While GTK_COMBO to GTK_COMBO_BOX transition was what triggered the need for it, gtk_combo_box_new_text is a non-solution, cause I will be changing that list, looking up values it contains, etc., so I need a method of displaying it and certain usability issues, force something that should look and act like GTK_COMBO.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]