f-spot r3957 - in trunk: . src/UI.Dialog
- From: rubenv svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3957 - in trunk: . src/UI.Dialog
- Date: Tue, 20 May 2008 20:40:37 +0000 (UTC)
Author: rubenv
Date: Tue May 20 20:40:36 2008
New Revision: 3957
URL: http://svn.gnome.org/viewvc/f-spot?rev=3957&view=rev
Log:
2008-05-20 Ruben Vermeersch <ruben savanne be>
* src/UI.Dialog/PreferenceDialog.cs: Fix a crasher when a user has a theme
installed in his home directory as well as his system theme directory.
Modified:
trunk/ChangeLog
trunk/src/UI.Dialog/PreferenceDialog.cs
Modified: trunk/src/UI.Dialog/PreferenceDialog.cs
==============================================================================
--- trunk/src/UI.Dialog/PreferenceDialog.cs (original)
+++ trunk/src/UI.Dialog/PreferenceDialog.cs Tue May 20 20:40:36 2008
@@ -117,7 +117,7 @@
foreach (string path in search)
if (Directory.Exists (path))
foreach (string dir in Directory.GetDirectories (path))
- if (File.Exists (Path.Combine (dir, gtkrc)))
+ if (File.Exists (Path.Combine (dir, gtkrc)) && !theme_list.ContainsKey (Path.GetFileName (dir)))
theme_list.Add (Path.GetFileName (dir), Path.Combine (dir, gtkrc));
foreach (string theme in theme_list.Keys)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]