In data 06 ottobre 2006 alle ore 07:48:34, Paolo Bonzini <[EMAIL PROTECTED]> 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


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to