help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Problem with the parameter of a callback method [GT


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Problem with the parameter of a callback method [GTK+]
Date: Fri, 08 Jul 2011 09:25:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Mnenhy/0.8.3 Thunderbird/3.1.10

On 07/08/2011 09:11 AM, ZuLuuuuuu wrote:
Hello,

I have a callback method for this callback:

http://developer.gnome.org/gtk3/stable/GtkNotebook.html#GtkNotebook-switch-page

My callback method is:
        
myCallback: aWidget pageNumber: pageNumber [
        pageNumber printString printNl.
]


The text printed when the callback is called is numbers like: '13034496'.

Is this a CObject or something? How can I get the pageNumber in this
situation?

Define it as

myCallback: aNotebook page: aPage pageNumber: pageNumber

You were removing a parameter in the middle. :)

Paolo



reply via email to

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