---Reply to mail from Bill Shui about [gtk-list] Don't know why this does not work.

[ Program cut out ]
 
> I've compiled it and ran the program.
> it seemed to work, however, when I click on "crap" or "hello" button.
> 
> I get something like these printed out in my terminal:
> �ct@\ was pressed     <--- it should print "crap button was pressed"
> 
> pct was pressed.    <-- it should print "hello button was pressed"

void hello(GtkWidget *widget, GdkEvent *event, gpointer data)

isn't right for a callback... 

void hello(GtkWidget *widget, gpointer data)

It should look like this.I only use the upper one when handling
delete_event. I'm quite new with gtk also, so i can't really explain why.
Try this though. Should work..

/Mikael 'Nik' Grahn - Mindkiller Systems -



-- 
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to