Re: [gtk-list] Member functions as callbacks?



>
>
>Hiya
>
>Hope I'm not overlooking anything obvious here, but I`m having problems
>when I try and use member functions as callback functions, eg.
>
>
>The problem is that the pointer 'widget' is completely different from what it
>should be, ie. not equal to 'button' as you'd expect.  I can access it by
>passing 'this' as an argument to the callback function, but I don't see
>why I should need to do this.  If I make button_pressed() a non-member
>function, widget == button as you'd expect.
>
>Do I need to do anything special to use gtk with C++?
>

point your web browser to

	www.iki.fi/terop/gtk/gtk--.html


gtk-- are C++ bindings for gtk

-- 
Andre Fornacon      
mail: A.Fornacon@tesis.de                 
phone: 49 89 74 73 77 52
TESIS GmbH Munic, Germany



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