Hello! We had reported on this patch before (you can see it here: http://bugzilla.xfce.org/show_bug.cgi?id=2264). We had some time to think about this plugin more, and make a very small change. We thought, that launching user-defined command on double-click is too Цindows-styled, and changed double-click on single-click. Also, we had fixed small memleak. So, here is list of things this patch offers: 1. User is able to select what program to run by a single-click on clock plugin. 2. User is able to set custom clock-formatting string (strftime based). Corresponding changes to xfce_clock widget were already accepted by Olivier Fourdan. As always, feedback is appreciated. Mail us at dev@verbdev.com.
Created attachment 778 xfce4-panel clock plugin patch.
IMHO, this is just adding way too much options to the clock plugin. Orage has it's own panel plugin with user defined time strings and a button for showning the main window. I know the current clock is simple, but it does what it should do: display time and date. So improving the clock plugin is good, but if you want to launch applications: use the launcher plugin. This way Xfce will be as fast and simple like it should be :-).
Nick, there is two issues: 1) some users like to use another scheduler software (orage clock plugin is not configurable to run another program) 2) the default-enabled clock plugin is mostly unusable because it don't show date and requires additional launcher (additional space) on panel to run calendar I'm personally found this patch very interesting and my panel's clock now seems like Gnome's! ;)
Since we are in code freeze for the release of Xfce 4.4.0, I really won't add this now. The single or double click option to run a command is a good one, the others I'm not sure about. I'll look at this again after the release.
I would as well like to have the double-click program option. Indeed any new format options would bloat it.
The clock plugin in trunk has support for custom time formats. Click support will probably be added, but I need to discuss this a bit with Jasper and Juha.