[ease/builder] [welcomewindow] Annote a crash



commit 9a94eb4f095ed32681d23ed1d81cadbd060a76af
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date:   Mon Jul 12 15:10:04 2010 -0500

    [welcomewindow] Annote a crash

 src/ease-document.vala       |    6 ++++--
 src/ease-welcome-window.vala |    4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/ease-document.vala b/src/ease-document.vala
index 6997f97..24e903b 100644
--- a/src/ease-document.vala
+++ b/src/ease-document.vala
@@ -65,18 +65,20 @@ public class Ease.Document : SlideSet
 	 */
 	public Document.from_theme(Theme doc_theme, int w, int h) throws GLib.Error
 	{
+		debug ("Creating a new document with a theme.");
 		width = w;
 		height = h;
 		theme = doc_theme;
 		
 		assert (doc_theme != null);
-
+		debug ("Allocating temp dir");
 		// allocate a temp directory for the new document
 		path = Temp.request();
 		
+		debug ("Copying media");
 		// copy media to the new path
 		doc_theme.copy_media(path);
-		
+		debug ("Getting master");
 		// get the master
 		var master = theme.slide_by_title(DEFAULT_SLIDE);
 		
diff --git a/src/ease-welcome-window.vala b/src/ease-welcome-window.vala
index a6dff29..ac52741 100644
--- a/src/ease-welcome-window.vala
+++ b/src/ease-welcome-window.vala
@@ -185,7 +185,6 @@ public class Ease.WelcomeWindow : Gtk.Window
 		preview_container.add_actor(preview_background);
 
 		try	{
-			// FIXME : incompatible assignment
 			unowned string[] data_dirs = Environment.get_system_data_dirs ();
 			foreach (string dir in data_dirs) {
 				var filename = Path.build_filename (dir,
@@ -280,6 +279,9 @@ public class Ease.WelcomeWindow : Gtk.Window
 		try
 		{
 			// create a new Document
+			// FIXME : this call crashes. We don't reach the next line,
+			// nor do we reach the constructor from_theme(). It must have
+			// something to do with the closure (gdb talks about it).
 			var document = new Document.from_theme(selected_theme,
 												   (int)x_res.get_value(),
 												   (int)y_res.get_value());



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