Tue 01 Nov 2011 01:23:55 PM UTC, original submission:
Long story: I first noticed gxmessage when I needed a more beautiful replacement for xmessage in FreeNX. That was at home.
Now, at work, we are a large organization, and I am in a sort of tool support team, bringing certain "compute" capabilities to internal customers. For various reasons, they often need to log onto a VNC session running under a shared faceless account. Yet, often being unexperienced with the tools' backgrounds, they can break things. So we need some sort of banner up indicating status or instructions or "dos and dont's". We have used xterms with "banner", gvim, and what have you not.
I started evaluating other tools, and from xmessage (you know it well), zenity (a bit too GNOME-centric and quite option-less) landed with gxmessage.
gxmessage can already disable buttons ("-buttons =''"), be borderless, but is still missing a few classic features for me:
- don't allow to close with ESC key
- stay on top
- be sticky (across desktops).
Thanks to easy to read code and GTK+, I have been able to add all three features. You may or may not think that these belong into gxmessage, but I vote for them. :-)
This bug item covers:
Allow to disable closing window with ESC key.
gxmessage already exits with a different exit code if the window is closed with ESC, signaling that something different happened than what would have happened with one of the buttons. I believe it to be a valid use case to disallow this to happen.
In my case explained above, I want to remove the ability to close the window easily. For others, the use case may be to force use of the buttons.
I am attaching a patch which works nicely for me.
(BTW, you might also want to cover the case of someone closing the window using the window manager, e.g. with something like the 'x' in the frame. At least it needs special handling, it's similar to ESC.)
|