[glide] Implement some helpers for undo



commit af7de4c9db23c6724f859142cf042c2252ac3bcd
Author: Robert Carr <racarr Valentine localdomain>
Date:   Sun May 2 02:02:08 2010 -0400

    Implement some helpers for undo

 src/glide-actor.c |   12 ++++++++++++
 src/glide-actor.h |    3 +++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/glide-actor.c b/src/glide-actor.c
index 0c6d5e9..f35f9d4 100644
--- a/src/glide-actor.c
+++ b/src/glide-actor.c
@@ -309,3 +309,15 @@ glide_actor_get_resource_path (GlideActor *actor, const gchar *resource_name)
 {
   return glide_document_get_resource_path (glide_stage_manager_get_document (glide_actor_get_stage_manager (actor)), resource_name);
 }
+
+void
+glide_actor_start_undo (GlideActor *actor, const gchar *label)
+{
+  glide_undo_manager_start_actor_action (glide_actor_get_undo_manager (actor), actor, label);
+}
+
+void
+glide_actor_end_undo (GlideActor *actor)
+{
+  glide_undo_manager_end_actor_action (glide_actor_get_undo_manager (actor), actor);
+}
diff --git a/src/glide-actor.h b/src/glide-actor.h
index df5a988..03c068e 100644
--- a/src/glide-actor.h
+++ b/src/glide-actor.h
@@ -98,6 +98,9 @@ void glide_actor_print (GlideActor *actor, cairo_t *cr);
 gchar *glide_actor_add_resource (GlideActor *actor, const gchar *filename);
 gchar *glide_actor_get_resource_path (GlideActor *actor, const gchar *resource_name);
 
+void glide_actor_start_undo (GlideActor *actor, const gchar *label);
+void glide_actor_end_undo (GlideActor *actor);
+
 
 
 G_END_DECLS



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