Re: A model/buffer for GtkEntry



Matthias Clasen wrote:
> 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.
> 
> 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.

Okay, well then I should probably follow Tristan's suggestion [1] and
keep the conversion to 'display text' in the view.

This would mean that all the invisibility would continue to live in
GtkEntry. I'll work on abstracting it out a bit better, instead of
'if(entry->visible)' everywhere.

Cheers,

Stef

[1] http://mail.gnome.org/archives/gtk-devel-list/2009-March/msg00173.html



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