From: Thefull <th...@wa...> - 2006-09-21 22:42:59
|
Rosen, please, revisa modify kernel. Rosen, i found problem in events.h {"toggled", "OnCell_toggled", G_CALLBACK( OnCell_toggled )}, /*30 OJO! realmente la señal es toggled, para las cell.*/ But, from gcellrenderertoggle.prg ::Connect( "cell_toggled" ) // Internamente a nivel de GTK es "tooggled" Why? Because signal "toggled" for gcellrenderertoggle not equal a signal "toggled" , gtogglebutton. The callback NOT is equal, parameters in the callback not is equal. But, after changes , i connect "toggled", but in new code, connect "cell_toggled", but "cell_toggled" not exists. Please,compile /gclass/listore/browse.prg, crash this line: DEFINE TREEVIEWCOLUMN COLUMN 6 TITLE "Check" TYPE "active" OF oTreeView And , const gchar *, change a gchar * typedef struct { gchar *name; gchar *method; gchar *signal; // NAME CORRECT of Signal at USED. GCallback callback; } TGtkActionParce; Then, if ( iPos != -1 ){ iReturn = g_signal_connect_data( G_OBJECT( widget ), ( array[ iPos ].signal == NULL ? array[ iPos ].name : array[ iPos ].signal ), array[ iPos ].callback, cMethod, NULL, ConnectFlags ); Second bug: /// Bug in codeblocks Please, change this: if( ISBLOCK( 4 ) ) cMethod = array[ iPos ].method; with if( ISBLOCK( 4 ) ) cMethod = array[ iPos ].name; because, tests/natives/ CRASH!! Regards Rafa Carmona |