Technical discussions | Discussions techniques
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? |
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. |
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 : 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. |
Subscription date : 10 May 2010
Messages : 22
|
Thanks, it works |
Subscription date : 30 November 2007
Messages : 17118
|
great, and what did you do exactly ?
maybe someone can be interested. |
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. |
Subscription date : 30 November 2007
Messages : 17118
|
a large preview picture(video)
you mean the preview is updated like the Compiz thumbnails ? |
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
|