Re: Abstract string properties with getter/setter functions

2007-09-21 Thread James \"Doc\" Livingston
On Thu, 2007-09-20 at 08:15 +0200, Raffaele Sandrini wrote: > On Wed, 2007-09-19 at 19:20 +0200, David Nečas (Yeti) wrote: > > On Wed, Sep 19, 2007 at 06:48:25PM +0200, Raffaele Sandrini wrote: > > > > > Since we do not see a way around this (yet) and we could not find an > > > > > example with st

which level (directfb or gtk++)shoud I use to draw image?

2007-09-21 Thread summer xia
hello all I am developing a media player on Linux. We choose the Gtk+ based on DirectFB is our GUI library. But I wonder to know which level API should be choosed when draw image on LCD, use Gtk+ object such as GdkPixbuf, GdkImage and so on, or use IDirectFB,IDirectFBSurface and so on? If I want t

Re: Undo framework

2007-09-21 Thread Iain *
> Do you allow nested undo groups? This is rather important > if you want to compose actions from smaller actions and still allow > scripts or other higher levels to combine these into a single undo step. > We make heavy use of nested undo groups in GIMP. We allow one level of nesting, I can see y

Re: Undo framework

2007-09-21 Thread Johan Dahlin
Jody Goldberg wrote: > On Fri, Sep 21, 2007 at 05:51:26PM +0100, Iain * wrote: >> Hi, >> >> I've had an undo framework in Marlin for years now, but recently >> people have been using it in other things (notably Ross in Tasks - ok, >> actually, he's the only one) and we discussed suggesting this for

Re: Undo framework

2007-09-21 Thread Sven Neumann
Hi, On Fri, 2007-09-21 at 17:51 +0100, Iain * wrote: > The basic concepts are that there is an UndoManager object. When you > start an operation that can be undone you call > undo_manger_context_begin and this returns a UndoContext. Each part of > your operation then creates an Undoable setting t

Re: Undo framework

2007-09-21 Thread Jody Goldberg
On Fri, Sep 21, 2007 at 05:51:26PM +0100, Iain * wrote: > Hi, > > I've had an undo framework in Marlin for years now, but recently > people have been using it in other things (notably Ross in Tasks - ok, > actually, he's the only one) and we discussed suggesting this for > inclusion in GTK at some

Re: Undo framework

2007-09-21 Thread Sven Neumann
Hi, On Fri, 2007-09-21 at 17:51 +0100, Iain * wrote: > I've had an undo framework in Marlin for years now, but recently > people have been using it in other things (notably Ross in Tasks - ok, > actually, he's the only one) and we discussed suggesting this for > inclusion in GTK at some point in

Re: Undo framework

2007-09-21 Thread Yevgen Muntyan
David Trowbridge wrote: > You might want to look at the undo implementation in Tomboy. It > implements the "mergeable command" idea fairly nicely. > Or look at GtkSourceView, or look for it in bugzilla, or look at bunch of other implementations (I am sure there are *plenty*, minimum two in eve

Re: Undo framework

2007-09-21 Thread David Trowbridge
You might want to look at the undo implementation in Tomboy. It implements the "mergeable command" idea fairly nicely. -David On 9/21/07, Iain * <[EMAIL PROTECTED]> wrote: > On 9/21/07, Yevgen Muntyan <[EMAIL PROTECTED]> wrote: > > > Another note, you need to be able to merge those undoables. >

Re: Undo framework

2007-09-21 Thread Iain *
On 9/21/07, Yevgen Muntyan <[EMAIL PROTECTED]> wrote: > Another note, you need to be able to merge those undoables. > For example, when you type in bunch of characters in an > entry, you want to undo whole thing (e.g. entering a word, > or sequence of inserted characters, whatever is more > conven

Re: Undo framework

2007-09-21 Thread Iain *
On 9/21/07, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > Should be noted here that from my particular experience, writing > code that is undoable (i.e. filling in the execute()/undo() routines > for a given undoable command) is far more challenging than writing > a framework that supports it -

Re: Undo framework

2007-09-21 Thread Yevgen Muntyan
Please get it into gtk and make gtk suck less! Screw API, make it private if needed, just please please add undo to xchat's input entry. A side note, those basic concepts are implemented here and there hundred times. What would be nice to look at is actual usable code (e.g. in libegg). I.e. a real

Re: Undo framework

2007-09-21 Thread Tristan Van Berkom
On Fri, 2007-09-21 at 17:51 +0100, Iain * wrote: > Hi, > > I've had an undo framework in Marlin for years now, but recently > people have been using it in other things (notably Ross in Tasks - ok, > actually, he's the only one) and we discussed suggesting this for > inclusion in GTK at some point

Re: Undo framework

2007-09-21 Thread Ross Burton
On Fri, 2007-09-21 at 17:51 +0100, Iain * wrote: > I've had an undo framework in Marlin for years now, but recently > people have been using it in other things (notably Ross in Tasks - ok, > actually, he's the only one) and we discussed suggesting this for > inclusion in GTK at some point in the fu

Undo framework

2007-09-21 Thread Iain *
Hi, I've had an undo framework in Marlin for years now, but recently people have been using it in other things (notably Ross in Tasks - ok, actually, he's the only one) and we discussed suggesting this for inclusion in GTK at some point in the future. QT4[1] and Cocoa[2] both have very similar fra