[ease] [editor] Set identifiers for images.



commit 0ebbb001849d123b7dc4d9c2cb359466faf4845a
Author: Nate Stedman <natesm gmail com>
Date:   Sun Jul 25 05:26:16 2010 -0400

    [editor] Set identifiers for images.

 src/ease-editor-window.vala |    1 +
 src/ease-theme.vala         |    7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/ease-editor-window.vala b/src/ease-editor-window.vala
index ee16187..978fdf0 100644
--- a/src/ease-editor-window.vala
+++ b/src/ease-editor-window.vala
@@ -373,6 +373,7 @@ public class Ease.EditorWindow : Gtk.Window
 				e.y = document.height / 2 - width / 2;
 				
 				e.element_type = Slide.IMAGE_TYPE;
+				e.identifier = Theme.CUSTOM_MEDIA;
 				e.filename = document.add_media_file(dialog.get_filename());
 				
 				// add the element
diff --git a/src/ease-theme.vala b/src/ease-theme.vala
index 48dd66d..a89226b 100644
--- a/src/ease-theme.vala
+++ b/src/ease-theme.vala
@@ -84,6 +84,10 @@ public class Ease.Theme : GLib.Object
 	public const string TEXT_COLOR = "text-color";
 	public const string TEXT_TEXT = "text";
 	
+	// media content types
+	public const string CONTENT_MEDIA = "content-media";
+	public const string CUSTOM_MEDIA = "custom-media";
+	
 	// media properties
 	public const string MEDIA_FILENAME = "media-filename";
 	
@@ -108,9 +112,6 @@ public class Ease.Theme : GLib.Object
 		TEXT_ALIGN
 	};
 	
-	// media content types
-	public const string CONTENT_MEDIA = "content-media";
-	
 	// generic element properties
 	public const string PAD_LEFT = "padding-left";
 	public const string PAD_RIGHT = "padding-right";



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