[gnome-commander/gcmd-1-2-8] Support for backward/forward mouse buttons
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] Support for backward/forward mouse buttons
- Date: Fri, 29 Apr 2011 19:16:23 +0000 (UTC)
commit d0dd59f91f9ab502431ec0f186aa159124eb594c
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Apr 29 20:56:05 2011 +0200
Support for backward/forward mouse buttons
NEWS | 3 +++
doc/C/gnome-commander.xml | 8 ++++++++
src/gnome-cmd-file-selector.cc | 26 ++++++++++++++++++++------
3 files changed, 31 insertions(+), 6 deletions(-)
---
diff --git a/NEWS b/NEWS
index 86e24f7..c39be8d 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,9 @@ Bug fixes:
* Fixed problem #640387 (usage of deprecated python modules: md5, sha1)
* Fixed problem with Traditional Chinese translation
+New features:
+ * Support for backward/forward mouse buttons
+
===================================
gnome-commander 1.2.8.10
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index f0d0517..6e09b5d 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -7430,6 +7430,14 @@
</listitem>
</itemizedlist>
</para>
+ <para>New features:</para>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>Support for backward/forward mouse buttons</para>
+ </listitem>
+ </itemizedlist>
+ </para>
</entry>
</row>
<row valign="top">
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index ccafe97..987ad32 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -931,13 +931,27 @@ static void on_list_file_released (GnomeCmdFileList *fl, GnomeCmdFile *f, GdkEve
static void on_list_list_clicked (GnomeCmdFileList *fl, GdkEventButton *event, GnomeCmdFileSelector *fs)
{
if (event->type == GDK_BUTTON_PRESS)
- {
- if (event->button == 1 || event->button == 3)
- gnome_cmd_main_win_switch_fs (main_win, fs);
- else
- if (event->button == 2)
+ switch (event->button)
+ {
+ case 1:
+ case 3:
+ gnome_cmd_main_win_switch_fs (main_win, fs);
+ break;
+
+ case 2:
fs->goto_directory("..");
- }
+ break;
+
+ case 6:
+ case 8:
+ fs->back();
+ break;
+
+ case 7:
+ case 9:
+ fs->forward();
+ break;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]