[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DBus Menu in Gtk theme
From: |
Ivan Vučica |
Subject: |
Re: DBus Menu in Gtk theme |
Date: |
Mon, 24 Jun 2013 15:15:52 +0200 |
I've played a bit more with DBus Menu, and I've accidentally stumbled upon what's been causing my 'minimal' example of creating a 'global menu' not to work.
The issue? Standalone items apparently cannot exist in the dbusmenu's root. They must be actual menus, with subitems, it seems.
So, I'm happy that the little devil finally works. It's terribly ugly, but it works.
This doesn't, of course, help with GNUstep, considering the consensus is that DBusKit should be used instead of hacks with glib and its main loop.
But the following code from Enlightenment might:
Considering it seems to use their own DBus implementation, and does not seem to reuse any Canonical's components, or Gtk or Qt, it might be helpful in figuring out the protocol. On the other hand, someone who understands DBus better than I do (at the moment) might not need that, either; to me personally, Canonical's documentation about the protocol when talking over DBus was not extremely helpful.
'Java Swing Ayatana' project contained more useful code when it comes to integrating glib version of libdbusmenu.
And Enlightenment seems to contain code useful when talking directly over DBus, without Canonical's wrapper.
On Wednesday, November 14, 2012, Niels Grewe wrote:
Hi Ivan,
On 14.11.2012 19:17, Ivan Vučica wrote:
> On Tue, May 22, 2012 at 3:57 PM, Niels Grewe <niels.grewe@halbordnung.de
> <mailto:niels.grewe@halbordnung.de>> wrote:
>
> The problem is that DBusKit does not support exposing objects right now,
> but since there is interest in this from somebody who is not me, I'm now
> officially motivated/coerced to finally finish that part of DBusKit.
> Most of the difficult parts are done, but I'm still lacking code that
> takes care of registering exported objects with the D-Bus daemon.
>
>
> Just checking: was some work done here?
Yes, quite a bit, though mostly under-the-hood stuff. Registration of
objects is working and they can be messaged from other D-Bus peers. The
problem is that at the moment, you kinda would have to hand-craft the
information required by DBusKit to map Obj-C methods to D-Bus methods. I
have bits of code here and there that automates this, but I didn't get
to around to bringing it into a usable state.
Also WIP are D-Bus property support and outgoing notifications/signals.
IIrc, you need the latter for DBus menus. I hope that I'd be able to
work more on that soon.
Cheers,
Niels
--
Ivan Vučica - ivan@vucica.net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: DBus Menu in Gtk theme,
Ivan Vučica <=