Hi all, I've got a slight problem which I've investigated upon as far as I can understand, without finding any form of solution. The background is that I'm writing a function for adding the name of a C++ object into a listbox - using GStrings for it's nifty functions. The gtk_list_item_new_with_label only accepts gchars, so I want to change the GString into a gchar, named label, by taking the internal gchar of the GString struct and copying it into the gchar.
int AddItemToList(int type, GString *sText) { GtkWidget *item; gchar *label; /*label = sText->str;*/ item = gtk_list_item_new_with_label(label); But at the commented line, the program shuts down(using Windows and can as such not get a real reason). Anyone know how to fix this, or an alternate way of solving the general problem(What with passing in a GString to the function)? Thanks for any form of attention. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list