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

List:       gtk-devel
Subject:    Re: Generic undo stack for GTK+
From:       ecyrbe <ecyrbe () gmail ! com>
Date:       2010-06-21 10:57:44
Message-ID: AANLkTikHuHUwyyAH9-ibEeHp-mcXgRr1NHUnhNFghALC () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I do agree that there should be no UI related thing on Undo/Redo
Implementation, if any.
Easy Undo/Redo framework are usually based on Inheritance... but in GLib,
inheritance is not an easy way for Gtk users (in plain C GObject anyway).
Using vala or another object oriented binding to Gtk, it could be helpfull
and easy, but in plain GObject C, i think that nobody would end-up using
this.
And for completeness, it should provide two models, one with a group of
stacks (for multi-undo stacks applications) and one with a group of trees
(for more complex undo/redo schemas)...
Anyway, i don't see the value of adding it to GLib, as undo frameworks are
only an abstraction, and users end-up doing the painfull job of implementing
undo commands for every type of objects or actions they are putting in the
stack or the tree.


2010/6/17 Michael Natterer <mitch@gimp.org>

> On Wed, 2010-06-16 at 22:01 +0200, Holger Berndt wrote:
> > Some time ago, there was some discussion about a generic undo stack in
> > GTK+ [1]. The talk back then didn't result in more concrete API
> > discussion. As undo/redo is part of the GTK+ Roadmap [2], I now shot
> > ahead and created an undo proposal page [3] for that. Comments are very
> > welcome.
>
> If at all, this should definitely be in GLib. GIMP for example
> has strict core/ui separation, with the core not even knowing
> what GTK+ is, and of course undo is part of the core object
> system.
>
> ciao,
> --mitch
>
>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>

[Attachment #5 (text/html)]

I do agree that there should be no UI related thing on Undo/Redo Implementation, if \
any.<br>Easy Undo/Redo framework are usually based on Inheritance... but in GLib, \
inheritance is not an easy way for Gtk users (in plain C GObject anyway).<br> Using \
vala or another object oriented binding to Gtk, it could be helpfull and easy, but in \
plain GObject C, i think that nobody would end-up using this.<br>And for \
completeness, it should provide two models, one with a group of stacks (for \
multi-undo stacks applications) and one with a group of trees (for more complex \
undo/redo schemas)...<br> Anyway, i don&#39;t see the value of adding it to GLib, as \
undo frameworks are only an abstraction, and users end-up doing the painfull job of \
implementing undo commands for every type of objects or actions they are putting in \
the stack or the tree.<br> <br><br><div class="gmail_quote">2010/6/17 Michael \
Natterer <span dir="ltr">&lt;<a \
href="mailto:mitch@gimp.org">mitch@gimp.org</a>&gt;</span><br><blockquote \
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, \
204, 204); padding-left: 1ex;"> <div class="im">On Wed, 2010-06-16 at 22:01 +0200, \
Holger Berndt wrote:<br> &gt; Some time ago, there was some discussion about a \
generic undo stack in<br> &gt; GTK+ [1]. The talk back then didn&#39;t result in more \
concrete API<br> &gt; discussion. As undo/redo is part of the GTK+ Roadmap [2], I now \
shot<br> &gt; ahead and created an undo proposal page [3] for that. Comments are \
very<br> &gt; welcome.<br>
<br>
</div>If at all, this should definitely be in GLib. GIMP for example<br>
has strict core/ui separation, with the core not even knowing<br>
what GTK+ is, and of course undo is part of the core object<br>
system.<br>
<br>
ciao,<br>
--mitch<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
gtk-devel-list mailing list<br>
<a href="mailto:gtk-devel-list@gnome.org">gtk-devel-list@gnome.org</a><br>
<a href="http://mail.gnome.org/mailman/listinfo/gtk-devel-list" \
target="_blank">http://mail.gnome.org/mailman/listinfo/gtk-devel-list</a><br> \
</div></div></blockquote></div><br>



_______________________________________________
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