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,17 +1088,22 @@ IconActivate(
}
else
{
delay = (unsigned long)
XtGetMultiClickTime (XtDisplay (g));
G_ClickEvent (g) = (XButtonEvent *)
XtMalloc (sizeof (XButtonEvent));
*(G_ClickEvent (g)) = *b_event;
G_Sync (g) = True;
G_ClickTimerID (g) =
XtAppAddTimeOut (
XtWidgetToApplicationContext ((Widget)g),
delay, (XtTimerCallbackProc)ClickTimeout,
(XtPointer) g);
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 *)
XtMalloc (sizeof (XButtonEvent));
*(G_ClickEvent (g)) = *b_event;
G_Sync (g) = True;
G_ClickTimerID (g) =
XtAppAddTimeOut (
XtWidgetToApplicationContext ((Widget)g),
delay, (XtTimerCallbackProc)ClickTimeout,
(XtPointer) g);
}
}
if (G_ShadowThickness (g) > 0)