[f-spot] Emit HandleSelectionChanged when a new photo is chosen.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot] Emit HandleSelectionChanged when a new photo is chosen.
- Date: Tue, 4 Aug 2009 11:26:11 +0000 (UTC)
commit 9716c1fe57c28108798177e9bf660b532b496b7d
Author: Ruben Vermeersch <ruben savanne be>
Date: Tue Aug 4 13:25:19 2009 +0200
Emit HandleSelectionChanged when a new photo is chosen.
Fixes Bug 588998 â?? Unable to change tag icon using icon from photo
src/UI.Dialog/EditTagIconDialog.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/UI.Dialog/EditTagIconDialog.cs b/src/UI.Dialog/EditTagIconDialog.cs
index 43808f1..561387a 100644
--- a/src/UI.Dialog/EditTagIconDialog.cs
+++ b/src/UI.Dialog/EditTagIconDialog.cs
@@ -65,8 +65,8 @@ namespace FSpot.UI.Dialog
image_view.SelectionChanged += HandleSelectionChanged;
image_view.PhotoChanged += HandlePhotoChanged;
- external_photo_chooser = new Gtk.FileChooserButton (Catalog.GetString ("Select Photo from file"),
- Gtk.FileChooserAction.Open);
+ external_photo_chooser = new Gtk.FileChooserButton (Catalog.GetString ("Select Photo from file"),
+ Gtk.FileChooserAction.Open);
external_photo_chooser.Filter = new FileFilter();
external_photo_chooser.Filter.AddPixbufFormats();
@@ -181,8 +181,8 @@ namespace FSpot.UI.Dialog
void HandleSelectionChanged (object sender, EventArgs e)
{
- int x = image_view.Selection.X;
- int y = image_view.Selection.Y;
+ int x = image_view.Selection.X;
+ int y = image_view.Selection.Y;
int width = image_view.Selection.Width;
int height = image_view.Selection.Height;
@@ -208,6 +208,7 @@ namespace FSpot.UI.Dialog
item + 1, query.Count);
photo_spin_button.Value = item + 1;
+ HandleSelectionChanged (null, null);
}
public void HandleIconSelectionChanged (object o, EventArgs args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]