typedef _data
  {
    char *string;
    int value;
  } data;

data comboitem;

GList *liste = NULL;

>   comboitem = g_malloc(sizeof(struct _data));
>   strcpy(comboitem.string, "toto");
>   liste = g_list_insert(liste, comboitem, 0);
> 
>   comboitem = g_malloc(sizeof(struct _data));
>   strcpy(comboitem.string, "tata");
>   liste = g_list_insert(liste, comboitem, 0);

Ok! 2 questions...

>   comboitem = g_malloc(sizeof(gchar)*20);

1. can't convert void * to data, either if I do
something like

comboitem = (data)g_malloc(sizeof(struct data));

2. I use gtk_combo_set_popdown_strings to add the
glist to the combo, but... if I use a structure... it
only shows ASCII codes and not the strings...

Thanks for your help!

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to