RE: GtkList frustrations



DUH!

Thanks!


Tom

*********** REPLY SEPARATOR  ***********

On 11/21/00 at 2:14 PM Trog wrote:

>On 21-Nov-2000 Thomas Rock wrote:
>> I'm trying to get a list of items to display in a GtkList, but all
>> I get 
>> is a blank window. Below is the code (from an example in the 
>> Gnome/Gtk+ Programming Bible). What am I doing wrong?
>
><snip>
>
>>    
>> glist = g_list_append(glist,
>>                       gtk_list_item_new_with_label("Maximum"));
>
>You need to gtk_widget_show the list item, so it should be something
>like (for each one):
>
>   GtkWidget *item;
>
>   item = gtk_list_item_new_with_label("Maximum");
>   gtk_widget_show(item);
>   glist = g_list_append(glist, item);
>
>-tony
>
>
>---
>E-Mail: trog gtk org
>I find you lack of faith in the forth dithturbing.
>- Darse ("Darth") Vader
>
>Go Bezerk! http://www.gtk.org/~trog
>
>_______________________________________________
>gtk-list mailing list
>gtk-list gnome org
>http://mail.gnome.org/mailman/listinfo/gtk-list


Thomas Rock                        X-Tek Corporation 
thomas x-tekcorp com         P.O. Box 254
888-908-9835 ext. 101           Richmond, IL 60071
                                           www.x-tekcorp.com

                                           





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