1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

DtWidget: added appropriate KeyPress event handler to DtIcon widget

This commit is contained in:
alx 2015-07-23 20:27:20 +02:00 committed by Jon Trulson
parent 307981f3e5
commit c67763c82d

View file

@ -1088,6 +1088,10 @@ IconActivate(
}
else
{
if(event->type==KeyPress){
G_Armed(g)=False;
(*call_callback)(g,G_Callback(g),XmCR_SELECT,event);
}else{
delay = (unsigned long)
XtGetMultiClickTime (XtDisplay (g));
G_ClickEvent (g) = (XButtonEvent *)
@ -1100,6 +1104,7 @@ IconActivate(
delay, (XtTimerCallbackProc)ClickTimeout,
(XtPointer) g);
}
}
if (G_ShadowThickness (g) > 0)
(*expose) ((Widget)g, event, NULL);