[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] regression: c binding varargs handing.
From: |
Robert Collins |
Subject: |
[Help-smalltalk] regression: c binding varargs handing. |
Date: |
Sun, 19 Sep 2004 11:55:19 +1000 |
This is an apparent regression from 2.1.8 to 2.1f:
gtkcolumn
"answer the gtk column for the list"
gtkcolumn isNil ifTrue: [
|renderer|
renderer:=GTK.GtkCellRendererText new.
gtkcolumn:=GTK.GtkTreeViewColumn newWithAttributes: 'List' cell:
renderer varargs: {'text'. 0. nil}."
].
^gtkcolumn
!
stopped working. The GtkTreeViewColumn newWith.. call started triggering
a sigsegv in gtk.
this uses the gtk primitive calls to build the same thing, and it fails
only on the setAttributes call:
gtkcolumn
"answer the gtk column for the list"
gtkcolumn isNil ifTrue: [
|renderer|
renderer:=GTK.GtkCellRendererText new.
gtkcolumn:=GTK.GtkTreeViewColumn new.
gtkcolumn setTitle: 'List'.
gtkcolumn packStart: renderer expand: true.
gtkcolumn setAttributes: renderer varargs: {'text'. 0. nil }.
].
^gtkcolumn
!
finally, this works..
gtkcolumn
"answer the gtk column for the list"
gtkcolumn isNil ifTrue: [
|renderer|
renderer:=GTK.GtkCellRendererText new.
gtkcolumn:=GTK.GtkTreeViewColumn new.
gtkcolumn setTitle: 'List'.
gtkcolumn packStart: renderer expand: true.
gtkcolumn addAttribute: renderer attribute: 'text' column: 0.
].
^gtkcolumn
!
which is, from a gtk perspective, equivalent, except for not using
varargs.
There is at least one other C-binding related issue, but I haven't
tracked it down.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
signature.asc
Description: This is a digitally signed message part
- [Help-smalltalk] regression: c binding varargs handing.,
Robert Collins <=