% MagickCore X11 User Interface Methods %
% %
% Software Design %
-% John Cristy %
+% Cristy %
% September 1993 %
% %
% %
-% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
/*
Respond to X events.
*/
+ XGetWidgetInfo((char *) NULL,&mode_info);
XGetWidgetInfo((char *) NULL,&slider_info);
XGetWidgetInfo((char *) NULL,&north_info);
XGetWidgetInfo((char *) NULL,&south_info);
/*
User pressed mode button.
*/
- (void) CopyMagickString(reply_info.text,mode_info.text,
- MaxTextExtent);
+ if (mode_info.text != (char *) NULL)
+ (void) CopyMagickString(reply_info.text,mode_info.text,
+ MaxTextExtent);
(void) CopyMagickString(primary_selection,reply_info.text,
MaxTextExtent);
(void) XSetSelectionOwner(display,XA_PRIMARY,windows->widget.id,
sizeof(*selection_info));
if (selection_info == (XWidgetInfo *) NULL)
{
- ThrowXWindowFatalException(ResourceLimitError,
+ ThrowXWindowFatalException(ResourceLimitFatalError,
"MemoryAllocationFailed","...");
return(id);
}
/*
Dismiss button status changed.
*/
- dismiss_info.raised=cancel_info.raised == MagickFalse ?
+ dismiss_info.raised=dismiss_info.raised == MagickFalse ?
MagickTrue : MagickFalse;
XDrawBeveledButton(display,&windows->widget,&dismiss_info);
break;