meta_warning() and dialogue boxes

I didn’t expect to get useful suggestions from the Linux Haters’ blogs, but here’s something that might fly: they point out that warnings from the window manager end up in .xsession-errors where nobody ever sees them. But now that we’re using Zenity for dialogues throughout, there’s no reason why we can’t adapt meta_warning() to put up a dialogue every time a warning is issued, which might alert users to useful things, such as why they can’t bind the keystroke they want. Having a way to turn this off might also be helpful.

2 thoughts on “meta_warning() and dialogue boxes”

You’d want to be very (very) careful about what warnings you turn into user-visible alerts, though. The warning you’ve pictured is useful, but currenty my .xsession-errors has things like “Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x44000e5 (Toolbox)” and “Attempt to perform window operation 20 on window none when operation 20 on none already in effect”, neither of which are particularly helpful to me, and would certainly be annoying if they popped up as modal dialog boxes.

Is there some way within Metacity to alter keybindings, or does that warning appear when Metacity notices a gconf update that it can’t honour?