A newbie's problem from a newbie



I grab from the GTK+ tutorial this clist example: http://www.digitallin.com.br/phpgtk/teste002.cpp , that's with a few minor changes worked very well. (i'm using a gnu mingw 2.95.2 ide (DevC++ v4)  and gtk 1.3)
Then i tryed to turn it 'class-based' (http://www.digitallin.com.br/phpgtk/teste001.cpp), but got various
error messages from the lines where are the 'gtk_signal_connect's :
 
c:\core\bin\teste001.cpp: In method `void test::start()':
c:\core\bin\teste001.cpp:96: no matches converting function `rowClicked' to type `void (*)(...)'
c:\core\bin\teste001.cpp:50: candidates are: void test::rowClicked(GtkWidget *, int, int, GdkEventButton *, void *)
c:\core\bin\teste001.cpp:97: assuming & on `test::colClicked'
c:\core\bin\teste001.cpp:97: converting from `void (test::*)(GtkWidget *, int, GdkEventButton *, void *)' to `void (*)(...)'
c:\core\bin\teste001.cpp:118: no matches converting function `button_add_clicked' to type `void (*)(...)'
c:\core\bin\teste001.cpp:16: candidates are: void test::button_add_clicked(GtkButton *, void *)
c:\core\bin\teste001.cpp:119: no matches converting function `button_clear_clicked' to type `void (*)(...)'
c:\core\bin\teste001.cpp:30: candidates are: void test::button_clear_clicked(GtkButton *, void *)
c:\core\bin\teste001.cpp:120: no matches converting function `button_hide_show_clicked' to type `void (*)(...)'
c:\core\bin\teste001.cpp:37: candidates are: void test::button_hide_show_clicked(GtkButton *, void *)
c:\core\bin\teste001.cpp:129: `return' with a value, in function returning void
 

Another problem i have is to find a reference that explains directly the parameters passed by the Gtk Widgets, like: "The clist select_row signal pass those arguments to the signal handler: ......... The clist column_clicked signal pass those arguments to the signal handler: ......... The button clicked signal pass those arguments to the signal handler: ........."

Can someone tell me what i did wrong ? Thanks in advance !

Mauro Ferreira

mauroferreira enersulnet com br



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]