[mistelix/stable] Fixes DVD theme selection in some cases plus Dispose



commit 43a68bf0eb4bdedadccd694ef6fe11d9fdced251
Author: Jordi Mas <jmas softcatala org>
Date:   Tue Jul 14 21:14:52 2009 +0200

    Fixes DVD theme selection in some cases plus Dispose

 src/dialogs/ThemeSelectionDialog.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/dialogs/ThemeSelectionDialog.cs b/src/dialogs/ThemeSelectionDialog.cs
index cde0020..a301238 100644
--- a/src/dialogs/ThemeSelectionDialog.cs
+++ b/src/dialogs/ThemeSelectionDialog.cs
@@ -54,7 +54,7 @@ namespace Mistelix.Dialogs
 				set { 
 					theme = value;
 					
-					if (custom_menubackground != null)
+					if (string.IsNullOrEmpty (custom_menubackground) == false)
 						return;
 
 					cached_image = false;
@@ -159,6 +159,10 @@ namespace Mistelix.Dialogs
 					cached_image = false;
 
 				if (cached_image == false) {
+
+					if (image != null)
+						image.Dispose ();
+
 					image = new Cairo.ImageSurface (Cairo.Format.ARGB32, project.Details.Width, project.Details.Height);
 					Cairo.Context chight = new Cairo.Context (image);
 



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