mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 22:05:40 +00:00
Notify HT of column width changes.
Set the colors on the cell colors background since the tree does not take otherwise take the colors. ramiro volunteered to fix the widget, but this gets up part of the way there for now.
This commit is contained in:
parent
62d7b49f79
commit
9842783c31
@ -330,7 +330,19 @@ XFE_RDFTreeView::resize(XtPointer callData)
|
||||
|
||||
if (cbs->reason == XmCR_RESIZE_COLUMN)
|
||||
{
|
||||
D( printf("Inside XFE_RDFTreeView::resize(COLUMN, %d)\n", cbs->column););
|
||||
D(printf("Inside XFE_RDFTreeView::resize(COLUMN, %d)\n", cbs->column););
|
||||
XmLGridColumn column = XmLGridGetColumn(_tree, XmCONTENT, cbs->column);
|
||||
|
||||
XFE_ColumnData *column_data = getColumnData(cbs->column);
|
||||
|
||||
int width = 0;
|
||||
XtVaGetValues(_tree,
|
||||
XmNcolumnPtr, column,
|
||||
XmNcolumnWidth, &width,
|
||||
NULL);
|
||||
|
||||
HT_SetColumnWidth(_ht_view, column_data->token, column_data->token_type,
|
||||
width);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1002,6 +1014,8 @@ XFE_RDFTreeView::setHTTreeViewProperties( HT_View view)
|
||||
gotit = fe_GetPixelFromRGBString(getContext(), (char *) data, &pixel);
|
||||
if (gotit) {
|
||||
XtSetArg(av[ac], XmNbackground, pixel); ac++;
|
||||
XtSetArg(av[ac], XmNcellBackground, pixel); ac++;
|
||||
XtSetArg(av[ac], XmNblankBackground, pixel); ac++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1013,6 +1027,7 @@ XFE_RDFTreeView::setHTTreeViewProperties( HT_View view)
|
||||
gotit = fe_GetPixelFromRGBString(getContext(), (char *) data, &pixel);
|
||||
if (gotit) {
|
||||
XtSetArg(av[ac], XmNforeground, pixel); ac++;
|
||||
XtSetArg(av[ac], XmNcellForeground, pixel); ac++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user