[gnome-panel] status-notifier: add com.canonical.dbusmenu.xml



commit 3c3f0a35792221f9a46ee2a1a540eb0e0be479e0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Nov 2 14:31:45 2016 +0200

    status-notifier: add com.canonical.dbusmenu.xml

 applets/status-notifier/Makefile.am                |    9 +++
 applets/status-notifier/com.canonical.dbusmenu.xml |   74 ++++++++++++++++++++
 2 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/applets/status-notifier/Makefile.am b/applets/status-notifier/Makefile.am
index 9f8c0c1..f8656f2 100644
--- a/applets/status-notifier/Makefile.am
+++ b/applets/status-notifier/Makefile.am
@@ -41,6 +41,12 @@ status_notifier_la_LDFLAGS = \
        $(AM_LDFLAGS) \
        $(NULL)
 
+sn-dbus-menu-gen.h:
+sn-dbus-menu-gen.c: com.canonical.dbusmenu.xml
+       $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Sn \
+               --generate-c-code sn-dbus-menu-gen \
+               $(srcdir)/com.canonical.dbusmenu.xml
+
 sn-host-v0-gen.h:
 sn-host-v0-gen.c: org.kde.StatusNotifierHost.xml
        $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Sn \
@@ -60,6 +66,8 @@ sn-watcher-v0-gen.c: org.kde.StatusNotifierWatcher.xml
                $(srcdir)/org.kde.StatusNotifierWatcher.xml
 
 BUILT_SOURCES = \
+       sn-dbus-menu-gen.c \
+       sn-dbus-menu-gen.h \
        sn-host-v0-gen.c \
        sn-host-v0-gen.h \
        sn-item-v0-gen.c \
@@ -69,6 +77,7 @@ BUILT_SOURCES = \
        $(NULL)
 
 EXTRA_DIST = \
+       com.canonical.dbusmenu.xml \
        org.kde.StatusNotifierHost.xml \
        org.kde.StatusNotifierItem.xml \
        org.kde.StatusNotifierWatcher.xml \
diff --git a/applets/status-notifier/com.canonical.dbusmenu.xml 
b/applets/status-notifier/com.canonical.dbusmenu.xml
new file mode 100644
index 0000000..f8f72d1
--- /dev/null
+++ b/applets/status-notifier/com.canonical.dbusmenu.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+<node>
+  <interface name="com.canonical.dbusmenu">
+    <annotation name="org.gtk.GDBus.C.Name" value="DBusMenuGen" />
+
+    <method name="GetLayout">
+      <arg type="i" name="parentId" direction="in" />
+      <arg type="i" name="recursionDepth" direction="in" />
+      <arg type="as" name="propertyNames" direction="in" />
+      <arg type="u" name="revision" direction="out" />
+      <arg type="(ia{sv}av)" name="layout" direction="out" />
+    </method>
+
+    <method name="GetGroupProperties">
+      <arg type="ai" name="ids" direction="in" />
+      <arg type="as" name="propertyNames" direction="in" />
+      <arg type="a(ia{sv})" name="properties" direction="out" />
+    </method>
+
+    <method name="GetProperty">
+      <arg type="i" name="id" direction="in" />
+      <arg type="s" name="name" direction="in" />
+      <arg type="v" name="value" direction="out" />
+    </method>
+
+    <method name="Event">
+      <arg type="i" name="id" direction="in" />
+      <arg type="s" name="eventId" direction="in" />
+      <arg type="v" name="data" direction="in" />
+      <arg type="u" name="timestamp" direction="in" />
+    </method>
+
+    <method name="EventGroup">
+      <arg type="a(isvu)" name="events" direction="in" />
+      <arg type="ai" name="idErrors" direction="out" />
+    </method>
+
+    <method name="AboutToShow">
+      <arg type="i" name="id" direction="in" />
+      <arg type="b" name="needUpdate" direction="out" />
+    </method>
+
+    <method name="AboutToShowGroup">
+      <arg type="ai" name="ids" direction="in" />
+      <arg type="ai" name="updatesNeeded" direction="out" />
+      <arg type="ai" name="idErrors" direction="out" />
+    </method>
+
+    <property name="Version" type="u" access="read" />
+
+    <property name="TextDirection" type="s" access="read" />
+
+    <property name="Status" type="s" access="read" />
+
+    <property name="IconThemePath" type="as" access="read" />
+
+    <signal name="ItemsPropertiesUpdated">
+      <arg type="a(ia{sv})" name="updatedProps" direction="out" />
+      <arg type="a(ias)" name="removedProps" direction="out" />
+    </signal>
+
+    <signal name="LayoutUpdated">
+      <arg type="u" name="revision" direction="out" />
+      <arg type="i" name="parent" direction="out" />
+    </signal>
+
+    <signal name="ItemActivationRequested">
+      <arg type="i" name="id" direction="out" />
+      <arg type="u" name="timestamp" direction="out" />
+    </signal>
+  </interface>
+</node>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]