[file-roller] 4th and 5th mouse buttons navigate backward and forward in history



commit 60414fd957027ad89a4556ff8be02cb826fd1278
Author: James <jamesm51 gmail com>
Date:   Sat Nov 14 10:42:50 2009 +0100

    4th and 5th mouse buttons navigate backward and forward in history
    
    [bug #326017]

 src/fr-window.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 32e8528..ff4068b 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -3498,6 +3498,14 @@ dir_tree_button_press_cb (GtkWidget      *widget,
 
 		return TRUE;
 	}
+	else if ((event->type == GDK_BUTTON_PRESS) && (event->button == 8)) {
+		fr_window_go_back (window);
+		return TRUE;
+	}
+	else if ((event->type == GDK_BUTTON_PRESS) && (event->button == 9)) {
+		fr_window_go_forward (window);
+		return TRUE;
+	}
 
 	return FALSE;
 }
@@ -3705,6 +3713,16 @@ file_button_press_cb (GtkWidget      *widget,
 
 		return FALSE;
 	}
+	else if ((event->type == GDK_BUTTON_PRESS) && (event->button == 8)) {
+		// go back
+		fr_window_go_back (window);
+		return TRUE;
+	}
+	else if ((event->type == GDK_BUTTON_PRESS) && (event->button == 9)) {
+		// go forward
+		fr_window_go_forward (window);
+		return TRUE;
+	}
 
 	return FALSE;
 }



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