Friday, 15 June 2012

c - Adding items to Unity's global menu bar for a pure X11 application -



c - Adding items to Unity's global menu bar for a pure X11 application -

my application written using pure x11 apis only, i.e. no gtk, qt or other middleware. done via low-level xlib api, e.g. xcreatewindow() , on. possible add together items unity's global menu bar pure x11 application or forcefulness me window , event loop handling using toolkit gtk? i'd stick current pure x11-based implementation nice if somehow possible add together few menu items unity's global menu bar application.

to display menu each time toplevel window focused need phone call com.canonical.appmenu.registrar.registerwindow method of /com/canonical/appmenu/registrar passing window id , menu path ( string id, service name - build using path , win id ). need implement com.canonical.dbusmenu interface on service name - namely, getlayout, getgroupproperties, event, abouttoshow , layoutupdated methods.

i did simple library implement in javascript using node-dbus , node-x11 libraries. see example creates toplevel window , unity menu ( no glib / libdbus / libx11 dependencies here, pure networking )

c linux gtk x11 ubuntu-unity

No comments:

Post a Comment