[gnome-commander] Update file selector labels only for active (visible) file list
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-commander] Update file selector labels only for active (visible) file list
- Date: Wed, 15 Jul 2009 17:37:02 +0000 (UTC)
commit 1c97e4e11516f63311ef56ffdfb9b2c4476cfcd2
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Jul 15 19:20:13 2009 +0200
Update file selector labels only for active (visible) file list
src/gnome-cmd-file-selector.cc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 22cffec..2cd47e7 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -944,7 +944,10 @@ static void on_list_empty_space_clicked (GnomeCmdFileList *fl, GdkEventButton *e
static void on_list_files_changed (GnomeCmdFileList *fl, GnomeCmdFileSelector *fs)
{
- fs->update_selected_files_label();
+ g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));
+
+ if (fs->file_list()==fl)
+ fs->update_selected_files_label();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]