[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-devel
Subject:    Re: A model/buffer for GtkEntry
From:       Matthias Clasen <matthias.clasen () gmail ! com>
Date:       2009-03-31 4:17:39
Message-ID: cbccc63c0903302117m279331d7p4019e8614d7d8a4f () mail ! gmail ! com
[Download RAW message or body]

On Thu, Mar 26, 2009 at 5:38 PM, Stef Walter <stef-
> That may be the case, and I thought about this myself. One thing in
> favor of doing the conversion of 'real text' -> 'display text' in the
> model is that it allows subclassed models to do some quite interesting
> stuff in the conversion.
>
> For example, you could do what cell phones do as you enter a phone
> number: format it automatically as the user enters it. I haven't
> explored this idea properly though, but I believe it would be good to
> consider while implementing this model infrastructure for GtkEntry.

Once you talk about moving this kind of templated input into the
model, you also need to move cursor movement and selection handling to
the model, and then the model gets a lot more complicated.
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic