xpra icon
Bug tracker and wiki

Ticket #476: expose-menubar-path.patch

File expose-menubar-path.patch, 1.6 KB (added by Antoine Martin, 2 years ago)

not sure what this is for - but it is referenced in some of the docs

  • xpra/x11/gtk2/models/base.py

     
    196196                              #"_GTK_APPLICATION_OBJECT_PATH",
    197197                              #"_GTK_APP_MENU_OBJECT_PATH",
    198198                              #"_GTK_WINDOW_OBJECT_PATH",
     199                              #"_GTK_MENUBAR_OBJECT_PATH",
    199200                              ]
    200201    _DEFAULT_NET_WM_ALLOWED_ACTIONS = ["_NET_WM_ACTION_%s" % x for x in (
    201202        "CLOSE", "MOVE", "RESIZE", "FULLSCREEN",
     
    394395            "application-path"  : "_GTK_APPLICATION_OBJECT_PATH",   #ie: /org/gnome/baobab
    395396            "app-menu-path"     : "_GTK_APP_MENU_OBJECT_PATH",      #ie: /org/gnome/baobab/menus/appmenu
    396397            "window-path"       : "_GTK_WINDOW_OBJECT_PATH",        #ie: /org/gnome/baobab/window/1
     398            "menubar-path"      : "_GTK_MENUBAR_OBJECT_PATH",       #ie: ?
    397399            }.items():
    398400            v = self.prop_get(x11name, "utf8", ignore_errors=True, raise_xerrors=False)
    399401            menulog("%s=%s", x11name, v)
     
    407409        if not MENU_FORWARDING:
    408410            nomenu()
    409411        props = self._get_x11_menu_properties()
    410         if len(props)<5:        #incomplete
     412        req = ("application-id", "bus-name", "application-path", "app-menu-path", "window-path")
     413        if not all(x in props for x in req):#incomplete
    411414            nomenu()
    412415            return
    413416        menulog("gtk menu properties: %s", props)