Fix context menu in treeview

https://bugzilla.gnome.org/show_bug.cgi?id=731688