[Gtk-sharp-list] Gnome.Druid, ListStore.Foreach and others
Dan Winship
danw@novell.com
Mon, 11 Apr 2005 10:56:38 -0400
On Sat, 2005-04-09 at 19:50 +0200, Alain Perry wrote:
> 1/ I'm wondering how to make a multipath Gnome.Druid... I have tried
> mapping DruidPage.Next() methods to a custom callback function that sets
> the Druid.Page to the page I want, but the Next() is then called and I
> always get one page too far. As a workaround while I don't have a better
> solution, I'm setting Druid.Page to the page before the one I want to
> display, but I have no reason to be happy about that. What am I
> missing/doing wrong ?
Hm... the Gtk# docs don't seem to explain this bit. If you return "true"
from the NextClicked event, then it will assume you've set the page to
what you want it to be, and it won't increment it itself. So if you're
subclassing DruidPage and overriding OnNextClicked, just return true
from the method. If instead you're connecting to the NextClicked event,
set "args.RetVal" to true before returning from the handler.
Not sure about any of your other questions.
-- Dan