Discussion:
[Thunar-dev] accessing the location of the windows
didier chagniot
2011-01-05 16:48:57 UTC
Permalink
Hi,

In an attempt to write a plug-in, I wish to
get the list of all windows opened by the
main application.

I was thinking to 2 different ways:
1) from the plug-in get an access to
the application and then call the function
thunar_application_get (). From this point,
I iterate through the GLIST windows and get
the location.

2) with a dbus interface I ask thunar to give me
the different windows location.


Is it possible ?

Thanks for your answer,

didier
Jannis Pohlmann
2011-01-05 20:23:43 UTC
Permalink
On Wed, 5 Jan 2011 16:48:57 +0000 (UTC)
Post by didier chagniot
Hi,
In an attempt to write a plug-in, I wish to
get the list of all windows opened by the
main application.
1) from the plug-in get an access to
the application and then call the function
thunar_application_get (). From this point,
I iterate through the GLIST windows and get
the location.
2) with a dbus interface I ask thunar to give me
the different windows location.
Is it possible ?
Thunar's internal functions are not provided to plugins, so the answer
would be no. But if all you want to do is move Thunar windows to
certain locations on the screen, you can do this either with devilspie
or by writing a custom application based on libwnck. Using libwnck you
can easily query a list of all windows and filter out those that belong
to Thunar.

- Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20110105/e5a246cc/attachment.pgp>
didier chagniot
2011-01-06 17:46:49 UTC
Permalink
Ok, I repost because of the subject...
/ Thunar's internal functions are not provided to plugins, so the answerwould be no. But if all you want to do is move Thunar windows to
/>/ certain locations on the screen, you can do this either with devilspie
/>/ or by writing a custom application based on libwnck. Using libwnck you
/>/ can easily query a list of all windows and filter out those that belong
/>/ to Thunar.
/>/
/>/ - Jannis
/>/
/
Hi Jannis,

Thanks for your quick answer.

Actually my goal is not about the position of the windows, but to get
the location of the
different windows.
I'm coming from KDE and used XMonad & Krusader (two days ago .... so
quite a new user).

I was thinking the following:
Thunar is doing all what I want. Simply missing the two panes mode of
the orthodox file manager.
But if I open two (or more) thunar windows, I press F5 in one window in
order to copy the selected
files/directories to the location of the other window(s).
The second windows will be automatically updated because the file system
has changed.

Do you think there is a "simple" way to get the location (URI) of the
different windows ?

didier


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20110106/5cbe0743/attachment.html>
Loading...