summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-directory-view.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2019-04-03 03:26:13 -0400
committerraveit65 <[email protected]>2019-04-08 19:58:25 +0200
commit03879a95d4e7af812be6e0d7017855da67cf2ab3 (patch)
treecaa61ac390f830436e7472f907c19e81cc8351d6 /src/file-manager/fm-directory-view.c
parentdac2499eca04cdc0c96636b3ef0b9e8f4de7f0e7 (diff)
downloadcaja-03879a95d4e7af812be6e0d7017855da67cf2ab3.tar.bz2
caja-03879a95d4e7af812be6e0d7017855da67cf2ab3.tar.xz
Pass "NULL" for keyboard event
Fix #1198 "Context menu with menu key broken" Pass "NULL" for event which is passed ultimately to gtk_menu_popup_at_pointer as an invalid event was being passed when the menu key was used to open the icon views context menu
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r--src/file-manager/fm-directory-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index ef3daa87..2be71ead 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -9188,9 +9188,13 @@ fm_directory_view_pop_up_selection_context_menu (FMDirectoryView *view,
update_context_menu_position_from_event (view, event);
+ /* FIXME: passing event from here won't work
+ * for gtk_menu_popup_at_pointer (in eel_pop_up_context_menu() )
+ * if the menu is being triggered from here by the menu key
+ */
eel_pop_up_context_menu (create_popup_menu
(view, FM_DIRECTORY_VIEW_POPUP_PATH_SELECTION),
- event);
+ NULL);
}
/**