User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070728 Firefox/2.0.0.5 Build Identifier: Hi, for now the <click> action gets bound to the <img>. It seems that if your script doesn't use an icon you cannot use the on-click action. I propose a new syntax that makes use of nesting. So instead of: echo "<txt>blah</txt><img>icon.png</img><click>click action</click>" We would put the <click> element *inside* another element, like this: echo "<txt>blah<click>action1</click></txt><img>icon.png<click>action2</click></img>" This would then assign the action1 to the text, and action2 to the image, so you have much more control :-) We could even do the same for the tooltip ... I think this would rock :-) Reproducible: Always Steps to Reproduce:
Hi, I think it's a great idea ! I'll work on it soonly. But I don't understand how to create a click action on the tooltip ??? Bye, Jujucece
okay, when I said "We could even do the same for the tooltip ..." I should have been more clear. What I meant was we could also put the tooltip element inside the img and txt elements, so we could have different tooltips depending if you hover over the img or over the text. (if a user wouldn't want this, he could create a "global" tooltip just like you can do now, and if you would have a tooltip element inside an img or txt element it would "override")
Ah OK, I guess it... That's also a good idea. I'll definitely work on that feature. Bye, Jujucece
Commenting to indicate theres still interest in this.
I am also still interested in this.
Mass-reassign all bugs from florian@ to goodies-dev@, thanks for the maintenance work! (and sorry for the bugmail spam..)
Created attachment 6708 Adds <txtclick> functionality Attached is a patch (based on the current git tree) that adds the ability to click on the text field (value) and run a command. A new tag has been added: <txtclick> </txtclick> that holds the name of the executable to run when clicking on the text (value) field. You can still use <click></click> to run commands on the image. Example GenMon command: echo "<img>/home/toz/.icons/arch.png</img><txt>Test</txt><click>gcolor2</click><txtclick>galculator</txtclick><tool>This is a tool tip</tool>" Would appreciate some testing and feedback.
<txtclick> functionality added with this commit: http://git.xfce.org/panel-plugins/xfce4-genmon-plugin/commit/?id=b3490f60ba6df2292ad1498b559ec3f2a4a25665. Example GenMon command: echo "<img>/home/toz/.icons/arch.png</img><txt>Test</txt><click>gcolor2</click><txtclick>galculator</txtclick><tool>This is a tool tip</tool>" Will leave this ticket open for individual tooltip part.
Sorry for the delay in reaching this - I can confirm it works here (so you've basically turned the output text into a button). Shame its GTK3 now.
This enhancement was released in version 3.99 (GTK3 only). Resolving.