f-spot r3852 - trunk/src



Author: sdelcroix
Date: Mon Apr 28 08:46:54 2008
New Revision: 3852
URL: http://svn.gnome.org/viewvc/f-spot?rev=3852&view=rev

Log:
fixing a strange crop effect

Modified:
   trunk/src/PhotoView.cs

Modified: trunk/src/PhotoView.cs
==============================================================================
--- trunk/src/PhotoView.cs	(original)
+++ trunk/src/PhotoView.cs	Mon Apr 28 08:46:54 2008
@@ -177,6 +177,16 @@
 				rating.Value = (int)Item.Current.Rating;
 			rating.Changed += HandleRatingChanged;
 		}
+
+		public void UpdateSelectionCombo ()
+		{
+			//constraints_combo.Active = 0;	
+			TreeIter iter;
+			if (constraints_combo.GetActiveIter (out iter)) {
+				if (((ConstraintType)constraints_store.GetValue (iter, 3)) == ConstraintType.SameAsPhoto)
+					constraints_combo.Active = 0;
+			}
+		}
 	
 		private void Update ()
 		{
@@ -187,8 +197,8 @@
 			UpdateCountLabel ();
 			UpdateDescriptionEntry ();
 			UpdateRating ();
-			HandleConstraintsComboChanged (null, null);
-	
+			UpdateSelectionCombo ();
+
 			if (UpdateFinished != null)
 				UpdateFinished (this);
 		}



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