[dia] [embedded image] handle undo for pasted image



commit 9998a788e78979af0a1d989b3a20f1df954feba8
Author: Hans Breuer <hans breuer org>
Date:   Sun Feb 27 21:39:30 2011 +0100

    [embedded image] handle undo for pasted image

 app/commands.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/commands.c b/app/commands.c
index f4ee22d..e80e364 100644
--- a/app/commands.c
+++ b/app/commands.c
@@ -282,6 +282,9 @@ received_clipboard_image_handler(GtkClipboard *clipboard,
       change = dia_object_set_pixbuf (obj, pixbuf);
       if (change) /* ... but drop undo info */
 	change->free (change);
+      /* allow undo of the whole thing */
+      undo_insert_objects(dia, g_list_prepend(NULL, obj), 1); 
+
       diagram_add_object (dia, obj);
       diagram_select(dia, obj);
       object_add_updates(obj, dia);



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