mistelix r6 - in trunk/src: . core
- From: jmas svn gnome org
- To: svn-commits-list gnome org
- Subject: mistelix r6 - in trunk/src: . core
- Date: Sat, 21 Mar 2009 18:18:11 +0000 (UTC)
Author: jmas
Date: Sat Mar 21 18:18:11 2009
New Revision: 6
URL: http://svn.gnome.org/viewvc/mistelix?rev=6&view=rev
Log:
2009-03-21 Jordi Mas <jmas softcatala org>
* mistelix.cs: Include projecte title in the app window
* core/DvdMenu.cs: Dispose not used resources
Modified:
trunk/src/ChangeLog
trunk/src/core/DvdMenu.cs
trunk/src/mistelix.cs
Modified: trunk/src/core/DvdMenu.cs
==============================================================================
--- trunk/src/core/DvdMenu.cs (original)
+++ trunk/src/core/DvdMenu.cs Sat Mar 21 18:18:11 2009
@@ -161,6 +161,8 @@
Cairo.Context cr = new Cairo.Context (s);
Draw (cr, null);
s.WriteToPng (file);
+ ((IDisposable)cr).Dispose ();
+ s.Destroy ();
}
}
}
Modified: trunk/src/mistelix.cs
==============================================================================
--- trunk/src/mistelix.cs (original)
+++ trunk/src/mistelix.cs Sat Mar 21 18:18:11 2009
@@ -316,6 +316,7 @@
SensitiveToProjectContext ();
element_view.LoadElements ();
app_window.QueueDraw ();
+ UpdateWindowTitle ();
}
}
@@ -361,6 +362,7 @@
element_view.LoadElements ();
authoring_view.UpdateTheme ();
app_window.QueueDraw ();
+ UpdateWindowTitle ();
} catch (Exception e) {
@@ -425,6 +427,7 @@
authoring_view.UpdateTheme ();
app_window.QueueDraw ();
}
+ UpdateWindowTitle ();
}
void OnDocumentation (object sender, EventArgs args)
@@ -438,6 +441,12 @@
dialog.Run ();
}
+ void UpdateWindowTitle ()
+ {
+ app_window.Title = project == null ? Defines.APPNAME :
+ String.Format ("{0} - {1}", project.Details.Name, Defines.APPNAME);
+ }
+
[DllImport ("libc")] // Linux
private static extern int prctl (int option, byte [] arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]