RE: [gtk-list] GTK+ 1.1.12 - CList doesn't appear to work.



Odd.  I looked into it some more and it seems that the data pointer passed
to the click signal hander is invalid.  Seems to be getting corrupted
between the call to "gtk_signal_connect_object()" and the call to the
handler function.  Oddly enough passing other things (strings) works okay.
Makeing a pointer to the clist global and using it in the signal handler
works okay.

Michael Eddington

-----Original Message-----
From: Michael Eddington [mailto:MichaelE@freerange.com]
Sent: Wednesday, January 13, 1999 7:12 PM
To: gtk-list@redhat.com
Subject: [gtk-list] GTK+ 1.1.12 - CList doesn't appear to work.



Running Debian 2.0R4, 2.2-pre2 kernel, GTK+ 1.1.12.

trying to run the "clist" example program and I get this when I click the
add button:

$ ./clist

Gtk-CRITICAL **: file gtkclist.c: line 2684 (gtk_clist_append): assertion
`GTK_IS_CLIST (clist)' failed.
Gtk-CRITICAL **: file gtkclist.c: line 2684 (gtk_clist_append): assertion
`GTK_IS_CLIST (clist)' failed.
Gtk-CRITICAL **: file gtkclist.c: line 2684 (gtk_clist_append): assertion
`GTK_IS_CLIST (clist)' failed.
Gtk-CRITICAL **: file gtkclist.c: line 2684 (gtk_clist_append): assertion
`GTK_IS_CLIST (clist)' failed.

I get the same thing when trying to use it in my own code.  GTK+ 1.0.6 works
fine.

here is an ldd of clist:

$ ldd clist
        libgtk-1.1.so.11 => /usr/local/lib/libgtk-1.1.so.11 (0x4000f000)
        libgdk-1.1.so.11 => /usr/local/lib/libgdk-1.1.so.11 (0x4012b000)
        libgmodule-1.1.so.12 => /usr/local/lib/libgmodule-1.1.so.12
(0x4015c000)
        libglib-1.1.so.12 => /usr/local/lib/libglib-1.1.so.12 (0x40161000)
        libdl.so.2 => /lib/libdl.so.2 (0x40182000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40185000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40191000)
        libm.so.6 => /lib/libm.so.6 (0x40234000)
        libc.so.6 => /lib/libc.so.6 (0x4024d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Michael Eddington


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null



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