[glide] Implement hook for slide background
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Implement hook for slide background
- Date: Thu, 29 Apr 2010 09:18:31 +0000 (UTC)
commit 4ecafd6ccc379decef1b119f342edc7a6b78289b
Author: Robert Carr <racarr Valentine localdomain>
Date: Thu Apr 29 04:57:43 2010 -0400
Implement hook for slide background
src/glide-stage-manager.c | 2 ++
src/glide-undo-manager.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/glide-stage-manager.c b/src/glide-stage-manager.c
index bdc7407..a0b4215 100644
--- a/src/glide-stage-manager.c
+++ b/src/glide-stage-manager.c
@@ -859,7 +859,9 @@ glide_stage_manager_set_slide_background (GlideStageManager *manager, const gcha
{
GlideSlide *s = glide_document_get_nth_slide (manager->priv->document, manager->priv->current_slide);
+ glide_undo_manager_start_slide_action (manager->priv->undo_manager, s, "Set slide background.");
glide_slide_set_background (s, bg);
+ glide_undo_manager_end_slide_action (manager->priv->undo_manager, s);
}
void
diff --git a/src/glide-undo-manager.c b/src/glide-undo-manager.c
index deb100c..8352703 100644
--- a/src/glide-undo-manager.c
+++ b/src/glide-undo-manager.c
@@ -217,7 +217,7 @@ glide_undo_manager_end_slide_action (GlideUndoManager *manager,
}
info = g_malloc (sizeof (GlideUndoInfo));
- data = g_malloc (sizeof (GlideUndoActorData));
+ data = g_malloc (sizeof (GlideUndoSlideData));
info->undo_callback = glide_undo_slide_action_undo_callback;
info->redo_callback = glide_undo_slide_action_redo_callback;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]