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:
parent
307981f3e5
commit
c67763c82d
1 changed files with 16 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue