On Wed, 2009-09-23 at 15:39 +0800, Andy Stewart wrote:
> Hi Axel,
> 
> Today i read source code of VTE, i found it not develop split `model`
> and `view` like GTK+ framework's, it harded-code `model` and `view` in
> one module, so i can't split temrinal window like `TextBuffer` and
> `TextView`, too bad. 
> 
> The every widget in my project support always `module/view` framework
> for split window.
> 
> If i develop `TemrinalBuffer` contain process information and common
> data, and use Cario build `TerminalView` widget for render
> `TerminalBuffer`, current gtk2hs support it?

Maybe I don't quite understand what VTE is about, but if it's just a
terminal widget, then you can't modify it's state. So I don't think
there is a need to split the widget into a model and a view. Furthermore
if that is ever done, then the people maintaining VTE should use Gtk's
TextBuffer model, I don't think it's feasible to try to simulate that
VTE uses, say, TextBuffer to store its content.

Cheers,
Axel.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to