sbcl 1.0, glade-xml problem

"karol skocik" <[email protected]> Fri, 5 Jan 2007 00:54:30 +0100
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Hi,
  I am having problems with latest CLG (from today's CVS) on SBCL 1.0
Linux AMD64, when I want to use glade-xml.

these are ok :
(asdf:oos 'asdf:load-op :gtk)
(load ".sbcl/site/clg/glade/read-xml")
(load ".sbcl/site/clg/glade/glade")

but then :
CL-USER> (asdf:oos 'asdf:load-op :glade-xml)
; loading system definition from
; /home/md/.sbcl/site/clg/systems/glade-xml.asd into #<PACKAGE "ASDF0">
; registering #<SYSTEM GLADE-XML {10024A0171}> as GLADE-XML
; loading system definition from /home/md/.sbcl/systems/parse-number.asd
; into #<PACKAGE "ASDF0">
; registering #<SYSTEM PARSE-NUMBER {1002B50CB1}> as PARSE-NUMBER
; loading system definition from /home/md/.sbcl/systems/s-xml.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM :S-XML {1002E96181}> as S-XML

I get into name conflicts :
USE-PACKAGE #<PACKAGE "GTK"> causes name-conflicts in #<PACKAGE "GLADE-XML">
between the following symbols:
  GLADE-XML::DATA, GTK:DATA
   [Condition of type SB-INT:NAME-CONFLICT]

I resolve them manually :
Select a symbol to be made accessible in package GLADE-XML:
  1. GLADE-XML::DATA
  2. GTK:DATA

Enter an integer (between 1 and 2): 1

Select a symbol to be made accessible in package GLADE-XML:
  1. GLADE-XML::MATCH-TYPE
  2. GTK:MATCH-TYPE

Enter an integer (between 1 and 2): 1

Select a symbol to be made accessible in package GLADE-XML:
  1. GLADE-XML::TABLE
  2. GTK:TABLE

Enter an integer (between 1 and 2): 1

Select a symbol to be made accessible in package GLADE-XML:
  1. GLADE-XML::VALUE
  2. GTK:VALUE

Enter an integer (between 1 and 2): 1

Select a symbol to be made accessible in package GLADE-XML:
  1. GLADE-XML::TARGET
  2. GTK:TARGET

Enter an integer (between 1 and 2): 1

Select a symbol to be made accessible in package GLADE-XML:
  1. GLADE-XML::X
  2. GTK:X

Enter an integer (between 1 and 2): 1

Select a symbol to be made accessible in package GLADE-XML:
  1. GLADE-XML::NAME
  2. GTK:NAME

Enter an integer (between 1 and 2): 1

Select a symbol to be made accessible in package GLADE-XML:
  1. S-XML:PARSE-XML
  2. GLADE-XML:PARSE-XML

Enter an integer (between 1 and 2): 1

WARNING: GLADE-XML also exports the following symbols:
  (GLADE-XML:*CHARACTERS-HANDLER* GLADE-XML:*START-ELEMENT-HANDLER*
   GLADE-XML:*END-ELEMENT-HANDLER*
   GLADE-XML:*PROCESSING-INSTRUCTION-HANDLER*)
See also:
  The ANSI Standard, Macro DEFPACKAGE
STYLE-WARNING: implicitly creating new generic function BUILD-INTERFACE
STYLE-WARNING: implicitly creating new generic function ADD-CHILD
NIL

Now, here comes the real show-stopper:

CL-USER> (setf swank:*communication-style* :fd-handler)
:FD-HANDLER
CL-USER> (glade-xml:load-interface "/home/md/test.glade")
WARNING: GLib-GObject: invalid (NULL) pointer instance

GLib-GObject: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE
(instance)' failed
   [Condition of type GLIB:CRITICAL-LOG-LEVEL]

Restarts:
  0: [ABORT-REQUEST] Abort handling SLIME request.
  1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread"
{10036D5F81}>)

Backtrace:
  0: (NIL 5866357512456 5866357512455 #<FUNCTION GLIB::LOG-HANDLER>)
  1: ("foreign function: call_into_lisp")
  2: ("foreign function: funcall3")
  3: ("foreign function: #x40001225")

the test.glade file is very simple:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.1.2 on Fri Jan  5 01:10:54 2007 by
md@saturn-->
<glade-interface>
  <widget class="GtkWindow" id="window1">
    <child>
      <widget class="GtkLabel" id="label1">
        <property name="visible">True</property>
        <property name="label" translatable="yes">test
</property>
      </widget>
    </child>
  </widget>
</glade-interface>

Can somebody help me with this and also with those name conflicts? I
would very appreciate also some simple example of defining functions
which handle the gtk signals like when you press button, or something
like that...

Thank you,
  Karol

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV