Glitch wrote:
> Havoc Pennington wrote:
>
>> Glitch <[EMAIL PROTECTED]> writes:
>>
>>> GtkWidget *ball[6];
>>> ball[0] = gtk_editable_get_chars(GTK_EDITABLE(entry[0]), 0 , -1);
>>>
>>
>>
>> Surely you mean:
>> gchar *ball = gtk_editable_get_chars (... etc.)
>>
>> Assigning gchar* to GtkWidget* is not kosher.
>>
>> Havoc
>
>
> maybe that's how it should be done but it isn't the way i've been doing
> it in my program and actually, i took out the real way im doing it so it
> woudlnt' confuse the OP.
>
> I actually have the rvalue wrapped in an atoi() so I get an int, not a
> char.
>
stupid me. I got ball[] declared as an int. I don't know why I kept
thinking it was a widget. I realized it a little bit ago. I don't even
know why I started thinking about it but I realized I described my own
code wrong :) The atoi() lets me save the text(actually digits) as an
int into the ball[] array. Works like a charm for later comparisons in
my code.
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list