Re: A model/buffer for GtkEntry
- From: Matthias Clasen <matthias clasen gmail com>
- To: stef memberwebs com
- Cc: "gtk-devel-list gnome org" <gtk-devel-list gnome org>
- Subject: Re: A model/buffer for GtkEntry
- Date: Tue, 31 Mar 2009 00:17:39 -0400
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]