gtk3: implement native context menus

Desktop / LibreOffice - Caolán McNamara [redhat.com] - 24 February 2016 10:26 UTC

This reuses lots of the unity machinery which is similar to the mac concept of a single toplevel menubar.

So to drive popup menus, part of this is a rework that does away with the idea that the "menubar" is the controller of the hierarchy, and instead the top element becomes the controller

a0c700b gtk3: implement native context menus
vcl/inc/unx/gtk/gloactiongroup.h | 3 +
vcl/inc/unx/gtk/gtksalmenu.hxx | 9 +-
vcl/unx/gtk/gloactiongroup.cxx | 43 +++----
vcl/unx/gtk/gtksalmenu.cxx | 228 ++++++++++++++++++++++++++++----------
4 files changed, 203 insertions(+), 80 deletions(-)

Upstream: cgit.freedesktop.org


  • Share