GNOME Bugzilla – Bug 739046
"Open in New Window" context menu item gone
Last modified: 2015-01-10 10:00:28 UTC
It looks like recently there was a regression and fix for context menu items disappearing (https://bugzilla.gnome.org/show_bug.cgi?id=732124). However, the "Open in New Window" context menu item still appears to be MIA. I see that the `win.open-link-in-new-window` item is still being defined (since the fix of #732124) but is not being referenced in the source code anywhere. Can we get that option back?
Probably it was overlooked. Do you have a patch to propose?
Looks like a typo in xml file. Code uses "open-link-new-window" string, but menu description has "open-link-in-window": $ ag open-link shell/ev-window.c 545: ev_window_set_action_enabled (ev_window, "open-link", !recent_view_mode); 546: ev_window_set_action_enabled (ev_window, "open-link-new-window", !recent_view_mode); 4996: action = g_action_map_lookup_action (G_ACTION_MAP (ev_window), "open-link"); 5005: action = g_action_map_lookup_action (G_ACTION_MAP (ev_window), "open-link-new-window"); 5845: { "open-link", ev_window_popup_cmd_open_link }, 5846: { "open-link-new-window", ev_window_popup_cmd_open_link_new_window }, shell/evince-menus.ui 213: <attribute name="action">win.open-link</attribute> 228: <attribute name="action">win.open-link-in-window</attribute> I changed string in evince-menus.ui, now item 'Open in New Window' come back. I also checked all other actions in evince-menus.ui, looks like them all used in code.
Created attachment 290959 [details] [review] Patch to return 'Open in New Window' back
Review of attachment 290959 [details] [review]: The patch indeed adds the Open in New window context menu item back. I don't know if this is related, but when closing the window opened with that context menu item, evince crashes with the following backtrace, could anyone else please check if you get the same behaviour with this patch applied? (gdb) backtrace
+ Trace 234503
(In reply to comment #4) > Review of attachment 290959 [details] [review]: > > The patch indeed adds the Open in New window context menu item back. I don't > know if this is related, but when closing the window opened with that context > menu item, evince crashes with the following backtrace, could anyone else > please check if you get the same behaviour with this patch applied? > > (gdb) backtrace > I can't reproduce a crash.
Review of attachment 290959 [details] [review]: The patch looks correct. I've just pushed it to git master. Thanks!