William Skaggs ([EMAIL PROTECTED]) wrote:
> Jean-Luc Coulon wrote:
> > The plugin crash with a popup :
> > Plud-in crashed: "screenshot"
> I get the same result. Looking at the man pages, this apparently happens
> if the key being grabbed has already been grabbed by something else --
> but there does not seem to be any way to tell whether a given key
> has already been grabbed. Which kind of sucks.
If XGrabKey might fail you can wrap it similiar to this:
XGrabKey (GDK_DISPLAY_XDISPLAY (data->display),
if (gdk_error_trap_pop ())
g_printerr ("could not grab Hotkey. Aborting...\n");
[EMAIL PROTECTED] http://simon.budig.de/
Gimp-developer mailing list