f-spot r3797 - trunk/src
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3797 - trunk/src
- Date: Fri, 28 Mar 2008 12:49:29 +0000 (GMT)
Author: sdelcroix
Date: Fri Mar 28 12:49:28 2008
New Revision: 3797
URL: http://svn.gnome.org/viewvc/f-spot?rev=3797&view=rev
Log:
don't reset the combo
Modified:
trunk/src/PhotoView.cs
Modified: trunk/src/PhotoView.cs
==============================================================================
--- trunk/src/PhotoView.cs (original)
+++ trunk/src/PhotoView.cs Fri Mar 28 12:49:28 2008
@@ -187,11 +187,7 @@
UpdateCountLabel ();
UpdateDescriptionEntry ();
UpdateRating ();
- // If the selected constraint is "Same as photo" reset to "No Constraint"
- TreeIter iter;
- if (constraints_combo.GetActiveIter (out iter) &&
- (ConstraintType)constraints_store.GetValue(iter, 3) == ConstraintType.SameAsPhoto)
- constraints_combo.Active = 0;
+ HandleConstraintsComboChanged (null, null);
if (UpdateFinished != null)
UpdateFinished (this);
@@ -655,8 +651,13 @@
dialog.Dialog.Run ();
break;
case ConstraintType.SameAsPhoto:
- Pixbuf pb = photo_view.CompletePixbuf ();
- photo_view.SelectionXyRatio = (double)pb.Width / (double)pb.Height;
+ try {
+ Pixbuf pb = photo_view.CompletePixbuf ();
+ photo_view.SelectionXyRatio = (double)pb.Width / (double)pb.Height;
+ } catch (System.Exception ex) {
+ Console.WriteLine (ex);
+ photo_view.SelectionXyRatio = 0;
+ }
break;
default:
photo_view.SelectionXyRatio = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]