[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: Please send your Xlib bindings
From: |
Bonzini |
Subject: |
[Help-smalltalk] Re: Please send your Xlib bindings |
Date: |
Sun, 29 Dec 2002 12:12:17 +0100 |
> Yeah, I forgot to attach them and sent them to the list in another
> message, but here they are again.
I had messed with the list setup and looked at messages using the web
interface for a week.
> I don't have alot of time to explain it, but yes, Xlib bindings are
> needed (allbeit not this complete) to work with Imlib2 and a number of
> other Xlib-based libraries. GDK is only useful when dealing with
> GTK+.
But if Imlib2 was used, by chance :-), in the context of a GTK+ port of
Blox, Xlib bindings would not be needed, would they? (And also in GTK+ 2.0,
where they switched to GDK-Pixmap or something called like that)
The bug is very stupid, there's a dangling pointer whenever you call
_gst_define_cfunc through the DLD class (in fact, this means every time
you link through an external function using addLibrary: rather than
addModule:)
--- devel-gst-stable/libgst/cint.c~ Sun Dec 29 11:47:05 2002
+++ devel-gst-stable/libgst/cint.c Sun Dec 29 11:46:24 2002
@@ -601,7 +601,7 @@
node = (cfunc_info *) malloc(sizeof(cfunc_info));
node->avl.avl_parent = (avl_node_t *) cfi;
node->avl.avl_left = node->avl.avl_right = NULL;
- node->funcName = funcName;
+ node->funcName = strdup (funcName);
node->funcAddr = funcAddr;
*p = &(node->avl);
Paolo