Re: [gtk-list] Don't know why this does not work.
- From: Mikael Grahn <nvx hem passagen se>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Don't know why this does not work.
- Date: Sun Jan 09 18:38:46 +0100 (CET) 2000
---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 -
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]