help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Passing a string pointer to tree view model?


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Passing a string pointer to tree view model?
Date: Fri, 27 Aug 2010 09:34:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5

On 08/27/2010 09:30 AM, ZuLuuuuuu wrote:

Hello,

I was trying to get the value of the selected tree view cell via
#get:varargs: method:

http://library.gnome.org/devel/gtk/stable/GtkTreeModel.html#gtk-tree-model-get

I have a tree model built with {GValue gTypeString}. In C I need to pass a
pointer like&my_string considering that my_string is of type gchar*.

How can I get the string value in GST by using #get:varargs: (or any other
method)?

Smalltalk Strings are automatically converted to char *.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]