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,17 +1088,22 @@ IconActivate(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
delay = (unsigned long)
|
if(event->type==KeyPress){
|
||||||
XtGetMultiClickTime (XtDisplay (g));
|
G_Armed(g)=False;
|
||||||
G_ClickEvent (g) = (XButtonEvent *)
|
(*call_callback)(g,G_Callback(g),XmCR_SELECT,event);
|
||||||
XtMalloc (sizeof (XButtonEvent));
|
}else{
|
||||||
*(G_ClickEvent (g)) = *b_event;
|
delay = (unsigned long)
|
||||||
G_Sync (g) = True;
|
XtGetMultiClickTime (XtDisplay (g));
|
||||||
G_ClickTimerID (g) =
|
G_ClickEvent (g) = (XButtonEvent *)
|
||||||
XtAppAddTimeOut (
|
XtMalloc (sizeof (XButtonEvent));
|
||||||
XtWidgetToApplicationContext ((Widget)g),
|
*(G_ClickEvent (g)) = *b_event;
|
||||||
delay, (XtTimerCallbackProc)ClickTimeout,
|
G_Sync (g) = True;
|
||||||
(XtPointer) g);
|
G_ClickTimerID (g) =
|
||||||
|
XtAppAddTimeOut (
|
||||||
|
XtWidgetToApplicationContext ((Widget)g),
|
||||||
|
delay, (XtTimerCallbackProc)ClickTimeout,
|
||||||
|
(XtPointer) g);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_ShadowThickness (g) > 0)
|
if (G_ShadowThickness (g) > 0)
|
||||||
|
|
Loading…
Reference in a new issue