Setting Gtk widget sensitivities doesn't work properly

Project:GNU Smalltalk
Component:Bindings: Gtk
Category:bug
Priority:normal
Assigned:Unassigned
Status:fixed
Description

There is something new I found about the problem I was having here:

http://lists.gnu.org/archive/html/help-smalltalk/2010-09/msg00049.html

Looks like there are two definitions for GtkWidget>>setSensitive:, one in GtkImpl.st and one in Funcs.st both in Gtk package. And the GtkImpl.st one is being used when you load the package. After I added the definition inside Funcs.st to the beginning of my program like this:

GTK.GtkWidget extend [
        setSensitive: sensitive [
            <cCall: 'gtk_widget_set_sensitive' returning: #void
                args: #( #self #boolean )>
        ]
]

The issue is solved.

Updates

#1 submitted by Paolo Bonzini on Thu, 03/31/2011 - 10:49
Status:active» fixed

Thanks, I removed the implementation in GtkImpl.st.

User login