Simple GTK error
- From: "simon kendall" <malicious kendall gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Simple GTK error
- Date: Tue, 27 Jun 2006 13:17:16 +0200
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]