[solved]Can't compile Unicode using g_signal_connect_()?
Posted: Wed Jan 11, 2012 8:23 pm
I can't find a work around to compile in unicode mode using g_signal_connect
it's a macro and should accept UTF8 encoding but how to do it?
compile in unicode it doesn't work!
Edit this works
Scroll the mouse wheel over the button!
it's a macro and should accept UTF8 encoding but how to do it?
compile in unicode it doesn't work!
Code: Select all
ImportC "-gtk"
EndImport
ProcedureC onSize(*widget.GtkWidget,*event.GtkAllocation)
Debug *event\x
Debug *event\y
ProcedureReturn 1
EndProcedure
OpenWindow(1,0,0,200,100,"g_signalConnect")
ButtonGadget(0,5,5,60,20,"OK")
g_signal_connect_(GadgetID(0),"size-allocate",@onSize(),0)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Scroll the mouse wheel over the button!
Code: Select all
ImportC "-gtk"
g_signal_connect(instance,signal.p-ascii,*fn,*vdata,destroy=0,flags=0) As "g_signal_connect_data"
EndImport
ProcedureC onScroll(*widget.GtkWidget,*event.GdkEventScroll,pbID)
Debug *event\direction
Debug pbid
ProcedureReturn 1
EndProcedure
OpenWindow(1,0,0,200,100,"g_signalConnect")
ButtonGadget(2,5,5,60,20,"OK")
ButtonGadget(3,5,30,60,20,"OK TOO")
g_signal_connect(GadgetID(2),"scroll-event",@onScroll(),2)
g_signal_connect(GadgetID(3),"scroll-event",@onScroll(),3)
Repeat
Ev = WaitWindowEvent()
evg = EventGadget()
If Ev
If evg = 2
Debug EventType()
EndIf
EndIf
Until Ev = #PB_Event_CloseWindow