From 6836541e412388c14d3f37a46e9203ba4e3ba644 Mon Sep 17 00:00:00 2001 From: "radha%netscape.com" Date: Fri, 4 Sep 1998 22:54:17 +0000 Subject: [PATCH] Set singleClick activation in docked mode --- cmd/xfe/src/RDFTreeView.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/cmd/xfe/src/RDFTreeView.cpp b/cmd/xfe/src/RDFTreeView.cpp index 64359e8a2b4..80019b2a786 100644 --- a/cmd/xfe/src/RDFTreeView.cpp +++ b/cmd/xfe/src/RDFTreeView.cpp @@ -930,12 +930,19 @@ XFE_RDFTreeView::setStandAloneState(XP_Bool state) XP_ASSERT( XfeIsAlive(_tree) ); _standAloneState = state; +#ifdef UNDEF + /* + * We need to set lot more properties based on standalone state. + * We instead call setHTTreeviewProperties to do all that + */ int visibleColumns = (_standAloneState ? 0 : 1); XtVaSetValues(_tree, XmNvisibleColumns, visibleColumns, NULL); +#endif /* UNDEF */ + } ////////////////////////////////////////////////////////////////////////// XP_Bool @@ -1077,6 +1084,9 @@ XFE_RDFTreeView::setHTTreeViewProperties( HT_View view) ac ++; XtSetArg(av[ac], XmNhideUnhideButtons, True); ac++; + XtSetArg(av[ac], XmNsingleClickActivation, False); + ac++; + } else { @@ -1087,6 +1097,9 @@ XFE_RDFTreeView::setHTTreeViewProperties( HT_View view) ac++; XtSetArg(av[ac], XmNvisibleColumns, 1); ac++; + XtSetArg(av[ac], XmNsingleClickActivation, True); + ac++; + } @@ -1100,8 +1113,8 @@ XFE_RDFTreeView::setHTTreeViewProperties( HT_View view) } - Widget tree = getBaseWidget(); - XtSetValues(tree, av, ac); + + XtSetValues(_tree, av, ac);