GTK binding process

7 views
Skip to first unread message

Timmy Douglas

unread,
Apr 5, 2009, 3:34:39 PM4/5/09
to slate-language
Hey. I tried running the GUI again today and it looks good. I'd like
to add some more features to the IDE environment later but first I
need to fix some issues like the debugger not popping up for me.

(To Guille:)

Basically if I do:


dialog: (Gtk MessageDialog newQuestionMessage: message).
dialog when: #response do: [ | :dialog :answer |
dialog destroy.
answer = Gtk ResponseType Yes ifTrue: [ (Gtk Debugger newFor: c)
show ]
].
dialog show.
Gtk Main doEvent


the answer value is:

answer is: 4294967288
answer is: 4294967287

do you want me to look into it or do you want to do this?

I would guess it's related to glib/value.slate:

v@(GLib Value traits) value [...]
v@(GLib Value traits) as: type@(Integer traits) [...]

you might have to do some extra math on the latter function's
implementation.



and, is there an easy way to clean up these warnings?

libtool: compile: gcc -DSLATE_BUILD_TYPE=\"Optimized\" -
DSLATE_DATADIR=/usr/local/share/slate -D_POSIX_SOURCE=200112L -O2 -
std=c99 -Wall -pedantic -pthread -DPRINT_DEBUG_DEFUN -
DPRINT_DEBUG_GC_1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
c glib-wrapper.c -fPIC -DPIC -o .libs/glib-wrapper.o
glib-wrapper.c: In function ‘callback’:
glib-wrapper.c:75: warning: cast from pointer to integer of different
size
glib-wrapper.c: In function ‘callback_marshal’:
glib-wrapper.c:110: warning: ISO C forbids conversion of object
pointer to function pointer type
glib-wrapper.c: In function ‘callback_finalize_notifier’:
glib-wrapper.c:119: warning: cast from pointer to integer of different
size
glib-wrapper.c: In function ‘wrapper_g_cclosure_new’:
glib-wrapper.c:132: warning: cast to pointer from integer of different
size


Thanks.


Reply all
Reply to author
Forward
0 new messages