f-spot r4447 - in trunk: . src/Widgets



Author: sdelcroix
Date: Thu Sep 25 12:17:36 2008
New Revision: 4447
URL: http://svn.gnome.org/viewvc/f-spot?rev=4447&view=rev

Log:
2008-09-25  Stephane Delcroix  <sdelcroix novell com>

	* src/InfoBox.cs: re-add the (No Edits) label

Modified:
   trunk/ChangeLog
   trunk/src/Widgets/InfoBox.cs

Modified: trunk/src/Widgets/InfoBox.cs
==============================================================================
--- trunk/src/Widgets/InfoBox.cs	(original)
+++ trunk/src/Widgets/InfoBox.cs	Thu Sep 25 12:17:36 2008
@@ -216,7 +216,7 @@
 			size_value_label = AttachLabel (info_table, 3, name_value_label);
 			exposure_value_label = AttachLabel (info_table, 4, name_value_label);
 			
-			version_list = new ListStore (typeof (uint), typeof (string));
+			version_list = new ListStore (typeof (uint), typeof (string), typeof (bool));
 			version_combo = new ComboBox ();
 			CellRendererText version_name_cell = new CellRendererText ();
 			version_name_cell.Ellipsize = Pango.EllipsizeMode.End;
@@ -442,11 +442,13 @@
 			version_combo.Changed -= OnVersionComboChanged;
 			int i = 0;
 			foreach (uint version_id in photo.VersionIds) {
-				version_list.AppendValues (version_id, (photo.GetVersion (version_id) as PhotoVersion).Name);
+				version_list.AppendValues (version_id, (photo.GetVersion (version_id) as PhotoVersion).Name, true);
 				if (version_id == photo.DefaultVersionId)
 					version_combo.Active = i;
 				i++;
 			}
+			if (photo.VersionIds.Length == 1)
+				version_list.AppendValues (0, Catalog.GetString ("(No Edits)"), false);
 			version_combo.Changed += OnVersionComboChanged;
 
 			if (show_tags)
@@ -464,6 +466,8 @@
 		{
 			string name = (string)tree_model.GetValue (iter, 1);
 			(cell as CellRendererText).Text = name;
+
+			cell.Sensitive = (bool)tree_model.GetValue (iter, 2);
 		}
 
 



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