Re: Querying top panel widget positions?

Tony Houghton <[email protected]> Sun, 21 Mar 2021 13:16:59 +0000
Newsgroups gmane.comp.gnome.general
Message-ID <CA+GXpVVO6Fim70pG8XhMSGxQbGUaoR_1HvAvgu-rDTs8CWNqeQ@mail.gmail.com>
--===============0496130033599549784==
Content-Type: multipart/alternative; boundary="0000000000004e2d2305be0bc498"

--0000000000004e2d2305be0bc498
Content-Type: text/plain; charset="UTF-8"

Mutter can't use Gtk widgets in the panel for some technical reason, so it
uses a simpler toolkit called St <https://developer.gnome.org/st/>, based
on Clutter. I think you can read a widget's position via its ClutterActor
base class, and I think it's even possible to get information about widgets
belonging to other extensions. gnome-shell has some useful utility
libraries, but some of them may only be available to Javascript, and you'll
probably have to browse the source code
<https://gitlab.gnome.org/GNOME/gnome-shell/-/tree/master/js> and/or ask
questions.

Your code will have to run in an extension to get this info, so if the
pseudo-clickers etc are external they'll need some way to communicate with
each other.

PS These mailing lists are being phased out in favour of Discourse
<https://discourse.gnome.org/>.

-- 
TH

--0000000000004e2d2305be0bc498
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Mutter can&#39;t use Gtk widgets in the panel for som=
e technical reason, so it uses a simpler toolkit called=C2=A0<a href=3D"htt=
ps://developer.gnome.org/st/">St</a>, based on Clutter. I think you can rea=
d a widget&#39;s position via its ClutterActor base class, and I think it&#=
39;s even possible to get information about widgets belonging to other exte=
nsions. gnome-shell has some useful utility libraries, but some of them may=
 only be available to Javascript, and you&#39;ll probably have to <a href=
=3D"https://gitlab.gnome.org/GNOME/gnome-shell/-/tree/master/js">browse the=
 source code</a>=C2=A0and/or ask questions.</div><br><div class=3D"gmail_qu=
ote"><div class=3D"gmail_attr">Your code will have to run in an extension t=
o get this info, so if the pseudo-clickers etc are external they&#39;ll nee=
d some way to communicate with each other.</div><div class=3D"gmail_attr"><=
br></div><div class=3D"gmail_attr">PS These mailing lists are being phased =
out in favour of=C2=A0<a href=3D"https://discourse.gnome.org/">Discourse</a=
>.</div></div><div><br></div>-- <br><div dir=3D"ltr" class=3D"gmail_signatu=
re"><div dir=3D"ltr">TH<div><br></div></div></div></div>

--0000000000004e2d2305be0bc498--

--===============0496130033599549784==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnome-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-list

--===============0496130033599549784==--