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



commit 356925d8407e01c260e657e1a9d6c97276ed8a4a
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 7611db6..4a266b8 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1826,7 +1826,8 @@ gboolean GnomeCmdFileList::remove_file(GnomeCmdFile *f)
     priv->selected_files.remove(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]