[f-spot] Disabling version combo if photo has only a single version
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot] Disabling version combo if photo has only a single version
- Date: Mon, 10 Aug 2009 10:48:59 +0000 (UTC)
commit bddde1e1c5c1d792293ff0cb3c13ec68959aec61
Author: Anton Keks <anton azib net>
Date: Thu Jul 23 22:25:19 2009 +0300
Disabling version combo if photo has only a single version
This helps to distinguish photos with versions quickly.
src/Widgets/InfoBox.cs | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/Widgets/InfoBox.cs b/src/Widgets/InfoBox.cs
index da45e8b..01f187f 100644
--- a/src/Widgets/InfoBox.cs
+++ b/src/Widgets/InfoBox.cs
@@ -545,8 +545,7 @@ namespace FSpot.Widgets
version_combo.Active = i;
i++;
}
- if (photo.VersionIds.Length == 1)
- version_list.AppendValues ((uint)0, Catalog.GetString ("(No Edits)"), false);
+ version_combo.Sensitive = photo.VersionIds.Length > 1;
version_combo.Changed += OnVersionComboChanged;
if (show_file_size) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]