Re: GtkAssistant API thoughts
- From: Carlos Garnacho <carlos_garnacho yahoo es>
- To: Matthias Clasen <mclasen redhat com>, Jonathan Blandford <jrb redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkAssistant API thoughts
- Date: Thu, 8 Sep 2005 13:04:59 +0200 (CEST)
Hi!,
--- Matthias Clasen <mclasen redhat com> escribió:
> On Thu, 2005-09-08 at 01:12 -0400, Jonathan Blandford wrote:
> > > - ditch the "forward" and "back" signals, and use a user-specified function
> > > to compute the next page
> >
> > With a fallback to the order in which you add them, right? Also, what
> > are we thinking of keying off for the user function? An enum? The
> > value of the page? The closest API analogy I can think of is
> > gtk_tree_view_set_column_drag_function(), which takes the columns as
> > arguments. I've found that a bit clumsy in the past, though I don't
> > necessarily have a better suggestion.
>
> Carlos' patch uses a function that takes and returns indexes (ie
> integers)
>
> > > - use a stack of visited pages as you do to implement "back". I don't think
> > > there is a need to specify a custom back function, it should always go back
> > > to the previous page
> >
> > I can think of one instance where we needed a custom back. In RP3
> > (which was a modem configurator program) we had a page series that went:
> >
> > [ Search for modems? ] -> [ Search progress ] -> [ Results ]
> > ^-------------------------------------------/
> >
> > We would probably do that better now, but just giving a data point.
>
> Good point. We could probably handle that by adding a page type for
> progress pages, and then skipping those when going back.
Makes sense, but this will only be inherent to progress pages? maybe it would
be nice to have a more generic name than GTK_ASSISTANT_PAGE_PROGRESS for this?
(not that I can think about a better one)
BTW, I'm already working on this implementation, should be ready the next
week
Carlos
______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]