[Xfce-bugs] review requested: [Bug 3887] add a way to run a command when clicking on systemload plugin : [Attachment 5336] run configurable command on click or context menu activation
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Sun Jan 26 17:46:25 CET 2014
liquider <liquiderz at gmail.com> has asked for review:
Bug 3887: add a way to run a command when clicking on systemload plugin
https://bugzilla.xfce.org/show_bug.cgi?id=3887
Attachment 5336: run configurable command on click or context menu activation
https://bugzilla.xfce.org/attachment.cgi?id=5336&action=edit
------- Additional Comments from liquider <liquiderz at gmail.com>
Attached is a patch that does this. It is a configurable option, "System
monitor", that defaults to "xfce4-taskmanager". It can be conditionally enabled
(with a checkbox; disabled by default).
When enabled, clicking anywhere on the plugin surface spawns the command and
there is also a context menu item available.
When disabled, clicking does nothing and there is no menu item.
The patch introduces two new translatable labels:
"System monitor:" in the configuration dialog, and
"Run _System Monitor" in the context menu.
The widgets in the configuration dialog aren't all perfectly aligned, but that
problem precedes my contribution. :D I don't write much C (or any), so you're
invited to give it a thorough review. Given the existing code-base, I think I
did just fine. It seems to work well. :-)
The patch was built against Debian's testing 1.1.1 archive as I didn't manage
to compile the HEAD of your git repo (some autotools crazy I know nothing
about).
More information about the Xfce-bugs
mailing list