Re: a Wizard/Druid/Assistant widget for gtk



Matthias Clasen wrote:

void gtk_assistant_set_buttons_sensitive (GtkAssistant  *assistant,
                                         gboolean       back_sensitive,
gboolean forward_sensitive, gboolean cancel_sensitive);
What about finish?  Is that a different button?

I think I explained that in the docs further down: Since only on
forward-going (i.e. next/finish/close) button will be displayed at a
time, it is enough to have one flag controlling their visibility.
Eclipse often has wizards with both Next and Finish buttons visible. They change sensitivity depending on selected options or entered text. It is used in such situations: there are other pages with additional options or preview, and you can go to them by pressing Next. However, you can go with defaults or don't look at preview by pressing Finish.

Other times the only Finish button is replaced by Next if depending on selected options another step is required.

All of that is quite convenient, I don't think it would be a good thing to prevent doing that in API.

Another problem with this function is that you often want to change sensitivity of only one button (Next or Finish), and leave others as is. I doubt you ever need to disable back or cancel buttons at all?

Gediminas




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