[gnome-commander/gcmd-1-3] Moved SPACE key handling from GnomeCmdFileSelector to GnomeCmdFileList
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-commander/gcmd-1-3] Moved SPACE key handling from GnomeCmdFileSelector to GnomeCmdFileList
- Date: Wed, 15 Jul 2009 17:36:22 +0000 (UTC)
commit ee228a6afe1a00a418e8307c933a91672e1b09a8
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Jul 15 19:16:53 2009 +0200
Moved SPACE key handling from GnomeCmdFileSelector to GnomeCmdFileList
src/gnome-cmd-file-list.cc | 9 +++++++++
src/gnome-cmd-file-selector.cc | 10 ----------
2 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 3d72c64..487a988 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -2178,6 +2178,15 @@ gboolean GnomeCmdFileList::key_pressed(GdkEventKey *event)
case GDK_KP_Enter:
return mime_exec_file (get_focused_file());
+ case GDK_space:
+ set_cursor_busy ();
+ toggle();
+ show_dir_tree_size(get_selected_file());
+ stop_kp (*this);
+ g_signal_emit (this, signals[FILES_CHANGED], 0);
+ set_cursor_default ();
+ return TRUE;
+
case GDK_KP_Add:
case GDK_plus:
case GDK_equal:
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index b29a5bd..f2e1637 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -1809,16 +1809,6 @@ gboolean GnomeCmdFileSelector::key_pressed(GdkEventKey *event)
{
switch (event->keyval)
{
- case GDK_space:
- set_cursor_busy ();
- file_list()->toggle();
- f = file_list()->get_selected_file();
- file_list()->show_dir_tree_size(f);
- stop_kp (GTK_OBJECT (file_list()));
- update_selected_files_label();
- set_cursor_default ();
- return TRUE;
-
case GDK_Left:
case GDK_KP_Left:
case GDK_BackSpace:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]