English
Ask Your Question
0

How does Java Script DBUS interface work?

asked 2013-03-20 22:17:45 +0000

maxyan gravatar image

I was trying to tweak Gnome-Shell terminal extension, by shrinking its width, and changing position. I couldn't found such variable in any of provided file, but I have found this:

// dbus interface
const DropDownTerminalIface =
<interface name="org.zzrough.GsExtensions.DropDownTerminal">
    <property name="Pid" type="i" access="read"/>
    <method name="SetGeometry">
        <arg name="x" type="i" direction="in"/>
        <arg name="y" type="i" direction="in"/>
        <arg name="width" type="i" direction="in"/>
        <arg name="height" type="i" direction="in"/>
    </method>
    <method name="IsOpened"><arg type="b" direction="out"/></method>
    <method name="Toggle"/>
    <method name="Focus"/>
    <method name="Quit"/>
    <signal name="Failure">
        <arg type="s" name="name"/>
        <arg type="s" name="cause"/>
    </signal>
</interface>;

Looks like a template for XML file, but I can't find any corresponding XML-like file. How does it work? Can you point me a wiki or documentation?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-07-25 17:58:49 +0000

mcepl gravatar image

This is actually a XML object ... remember, gjs is based on Mozilla JavaScript engine so it contains E4X ( https://developer.mozilla.org/en-US/docs/Archive/Web/E4X ignore the fact that it is depreceated in the Firefox itself).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2013-03-20 22:17:45 +0000

Seen: 268 times

Last updated: Jul 25 '14