diff options
author | Benedikt Meurer <benny@xfce.org> | 2006-02-15 00:28:09 +0000 |
---|---|---|
committer | Benedikt Meurer <benny@xfce.org> | 2006-02-15 00:28:09 +0000 |
commit | 44b48ee342c1b961cc335d5ec002f766b2c7970c (patch) | |
tree | 77b91d5ab3ebd85b664416fd3a973309d6ef89d4 | |
parent | d6dfde9041a05567087a9f19f20fe589a9655fe9 (diff) | |
download | thunar-44b48ee342c1b961cc335d5ec002f766b2c7970c.tar.gz |
2006-02-15 Benedikt Meurer <benny@xfce.org>
* FAQ, thunar/thunar-icon-view.c: Add mouse gesture for "Reload" as
"move mouse down". The mouse gesture can still be canceled by placing
the cursor back to its initial position (+/- 40px).
(Old svn revision: 19883)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | FAQ | 2 | ||||
-rw-r--r-- | thunar/thunar-icon-view.c | 5 |
3 files changed, 12 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2006-02-15 Benedikt Meurer <benny@xfce.org> + * FAQ, thunar/thunar-icon-view.c: Add mouse gesture for "Reload" as + "move mouse down". The mouse gesture can still be canceled by placing + the cursor back to its initial position (+/- 40px). + +2006-02-15 Benedikt Meurer <benny@xfce.org> + * THANKS, thunar-uca/thunar-uca-editor.c: Apply patch provided by Nick Schermer <nickschermer@gmail.com> to fix a crash in the thunar-uca plugin if the icon specified for an action cannot @@ -62,5 +62,5 @@ appropriate answers to these questions. * Left - opens the previous visited folder * Up - opens the parent folder * Right - opens the next visited folder - * Down - cancels the gesture action + * Down - reload the current folder diff --git a/thunar/thunar-icon-view.c b/thunar/thunar-icon-view.c index 74e6df17..e052e15b 100644 --- a/thunar/thunar-icon-view.c +++ b/thunar/thunar-icon-view.c @@ -465,6 +465,11 @@ thunar_icon_view_gesture_action (ThunarIconView *icon_view) { return gtk_ui_manager_get_action (THUNAR_STANDARD_VIEW (icon_view)->ui_manager, "/main-menu/go-menu/forward"); } + else if (icon_view->gesture_current_y - icon_view->gesture_start_y > 40 + && ABS (icon_view->gesture_start_x - icon_view->gesture_current_x) < 40) + { + return gtk_ui_manager_get_action (THUNAR_STANDARD_VIEW (icon_view)->ui_manager, "/main-menu/view-menu/reload"); + } return NULL; } |