[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Blox-Gtk segmentation fault
From: |
Luca Bruno |
Subject: |
Re: [Help-smalltalk] Blox-Gtk segmentation fault |
Date: |
Fri, 06 Oct 2006 08:57:14 +0200 |
User-agent: |
Opera Mail/9.01 (Win32) |
In data 06 ottobre 2006 alle ore 07:48:34, Paolo Bonzini
<address@hidden> ha scritto:
The example_tree.st crashes, but changing the model creation by using
#new:varargs: fixes the problem.
Hum, works for me... patch?
In #open change:
typs := (CArrayCType elementType: CIntType numberOfElements: 3) new.
typs
at: 0 put: (GValue typeFromName: 'gint');
at: 1 put: (GValue typeFromName: 'gchararray');
at: 2 put: (GValue typeFromName: 'gchararray').
tree := GtkTreeStore newv: 3 types: typs.
to:
tree := GtkTreeStore new: 3 varargs: {
GValue gTypeInt.
GValue gTypeString.
GValue gTypeString}.
I can't make patches from Windows sorry.
GValue>>#typeFromName: seems to work fine, it's the C side that doesn't
handle typs as well.
Bye.
--
http://lethalman.blogspot.com - Thoughts about computer technologies