[f-spot] Return focus to proper places after actions. bgo#458554
- From: Lorenzo Milesi <lmilesi src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] Return focus to proper places after actions. bgo#458554
- Date: Thu, 9 Jul 2009 09:33:02 +0000 (UTC)
commit ef4fc2d13b0db25031738880a914beec2114c22b
Author: migish <m for migish gmail com>
Date: Thu Jul 9 11:29:28 2009 +0200
Return focus to proper places after actions. bgo#458554
This patch gives the focus to the photo_view or icon_view objects ( for Edit
mode and Browse mode ) after a tag is dragged on a photo (or selection). It
also gives the focus to the photo_view object when switching to edit mode.
src/MainWindow.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/MainWindow.cs b/src/MainWindow.cs
index 7b1aeaa..167395c 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -593,6 +593,8 @@ public class MainWindow {
JumpTo (icon_view.FocusCell);
zoom_scale.Value = photo_view.NormalizedZoom;
+
+ photo_view.View.GrabFocus();
break;
}
Selection.MarkChanged ();
@@ -1380,6 +1382,8 @@ public class MainWindow {
HandleAttachTagCommand (sender, null);
Gtk.Drag.Finish (args.Context, true, false, args.Time);
+
+ photo_view.View.GrabFocus();
}
//
@@ -2502,6 +2506,8 @@ public class MainWindow {
JumpTo (query.IndexOf (photo));
} catch (Exception) {}
}
+
+ icon_view.GrabFocus ();
break;
case Preferences.SIDEBAR_POSITION:
if (main_hpaned.Position !=Preferences.Get<int> (key) )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]