f-spot r3671 - trunk/src/UI.Dialog
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3671 - trunk/src/UI.Dialog
- Date: Tue, 12 Feb 2008 07:53:23 +0000 (GMT)
Author: sdelcroix
Date: Tue Feb 12 07:53:23 2008
New Revision: 3671
URL: http://svn.gnome.org/viewvc/f-spot?rev=3671&view=rev
Log:
fixes a crash in the About dialog
Modified:
trunk/src/UI.Dialog/AboutDialog.cs
Modified: trunk/src/UI.Dialog/AboutDialog.cs
==============================================================================
--- trunk/src/UI.Dialog/AboutDialog.cs (original)
+++ trunk/src/UI.Dialog/AboutDialog.cs Tue Feb 12 07:53:23 2008
@@ -87,16 +87,13 @@
WrapLicense = true;
}
- static AboutDialog ()
- {
- if (about == null)
- about = new AboutDialog ();
- about.Destroyed += delegate (object o, EventArgs e) {about = null;};
- about.Response += delegate (object o, Gtk.ResponseArgs e) {if (about != null) about.Destroy ();};
- }
-
public static void ShowUp ()
{
+ if (about == null) {
+ about = new AboutDialog ();
+ about.Destroyed += delegate (object o, EventArgs e) {about = null;};
+ about.Response += delegate (object o, Gtk.ResponseArgs e) {if (about != null) about.Destroy ();};
+ }
about.Show ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]