Lots of people need to implement right-click context menus for
TreeViews so we will explain how to do that here to
save you some time. It's much the same as a normal context menu, as described
in the menus chapter. You use a
Gtk::GestureClick to detect the mouse click.
This is demonstrated in the Popup Context Menu example. In that example
TreeView is used, but that's not necessary.