Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Is there possible other program know which icon is currently selected?
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
[Locked] Is there possible other program know which icon is currently selected?
eastfire English 10 eastfire [Read]
24 May 2010 à 11:23

eastfire, Thursday 13 May 2010 à 09:07


Subscription date : 10 May 2010
Messages : 22
Is there possible other program know which icon in dock is currently selected?
For example: I want to make a preview application. If currently focused icon in dock is a video , it show video preview;if current icon is a picture directory, it show picture slider show.

matttbe, Thursday 13 May 2010 à 18:33


Subscription date : 24 January 2009
Messages : 12573
Hello,
Is there possible other program know which icon in dock is currently selected?
Through Dbus or something like that?

For example: I want to make a preview application. If currently focused icon in dock is a video , it show video preview;if current icon is a picture directory, it show picture slider show.
Mmh, I don't understand . Maybe... Are you thinking about a Compiz plug-in in order to have some preview of an applications when the mouse is over its icon?

fabounet, Friday 14 May 2010 à 17:29


Subscription date : 30 November 2007
Messages : 17118
isn't it what Compiz does with the Preview plug-in ?
what's different in your idea ?
I can tell you how they do if you want, not sure it's what you expect though.

eastfire, Monday 17 May 2010 à 10:27


Subscription date : 10 May 2010
Messages : 22
Thanks for reply.

Do you mean the window preview plug-in which show window thumbnail in task bar?

the preview thing is just an example.

I just want to write a program that will change its content according to which icon is selected (not clicked or run yet) in dock or which sub icon is selected in sub-dock or applet.

Sometimes selection change is not trigger by mouse, when using Scooby-do plug-in, keyboard can also change selected icon.

matttbe, Monday 17 May 2010 à 12:12


Subscription date : 24 January 2009
Messages : 12573
Maybe the liblauncher is made for you https://launchpad.net/liblauncher

fabounet, Monday 17 May 2010 à 12:31


Subscription date : 30 November 2007
Messages : 17118
if you do it in the form of a plug-in of the dock, you can access to the ENTER_ICON notification.
which is used for instance by the animations and effects plug-ins.

eastfire, Wednesday 19 May 2010 à 10:36


Subscription date : 10 May 2010
Messages : 22
Thanks, it works

fabounet, Wednesday 19 May 2010 à 12:43


Subscription date : 30 November 2007
Messages : 17118
great, and what did you do exactly ?
maybe someone can be interested.

eastfire, Friday 21 May 2010 à 10:06


Subscription date : 10 May 2010
Messages : 22
I use my pc as a set-top-box or HTPC. Most of time I use remote control rather than mouse , so I use caior-dock as my main menu. And I need more TV UI feeling, so I add icon preview for every program icon, they can show a large preview picture(video) covering whole desktop when they are focused on.

fabounet, Friday 21 May 2010 à 12:30


Subscription date : 30 November 2007
Messages : 17118
a large preview picture(video)

you mean the preview is updated like the Compiz thumbnails ?

eastfire, Monday 24 May 2010 à 11:23


Subscription date : 10 May 2010
Messages : 22
fabounet :
a large preview picture(video)

you mean the preview is updated like the Compiz thumbnails ?


somehow like that, but not exactly, I write another preview window have the size of whole desktop, also fixed position.
when icon focus changed, I notify the preview window and change it's content, so that it will give a preview for every launcher in dock even when the application have not started yet.

Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
[Locked] Is there possible other program know which icon is currently selected?
eastfire English 10 eastfire [Read]
24 May 2010 à 11:23


Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Is there possible other program know which icon is currently selected? Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.