[gnome-commander/gcmd-1-2-8] GnomeCmdFileList: do not show bogus focus if there is any activity in inactive pane



commit dae7a7cc11383aed16a6d2308add29fc495e813c
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Mar 8 19:18:07 2011 +0100

    GnomeCmdFileList: do not show bogus focus if there is any activity in inactive pane

 src/gnome-cmd-file-list.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index a501704..d2d108b 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1591,7 +1591,8 @@ gboolean GnomeCmdFileList::remove_file(GnomeCmdFile *f)
     priv->selected_files = g_list_remove (priv->selected_files, f);
     priv->visible_files.remove(f);
 
-    focus_file_at_row (this, MIN (row, GTK_CLIST (this)->focus_row));
+    if (gtk_widget_is_focus(*this))
+        focus_file_at_row (this, MIN (row, GTK_CLIST (this)->focus_row));
 
     return TRUE;
 }



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