我有一个奇怪的问题,
我有一个包含 2 列和 3 行的表格,每个单元格文本可以在运行时进行编辑,当我编辑第三行第二列中的单元格时,我也使用相同的文本修改了上部单元格,这仅发生在 redhat6 上。可与 TextCellEditor 类型的 rhe5 和 rhe4 编辑器配合使用;
TableItem item = table.getItem(textEditor.getControl().getLocation());
Table.class 中的 getItem 方法实现是:
public TableItem getItem (Point point) {
checkWidget();
if (point == null) error (SWT.ERROR_NULL_ARGUMENT);
int /*long*/ [] path = new int /*long*/ [1];
OS.gtk_widget_realize (handle);
if (!OS.gtk_tree_view_get_path_at_pos (handle, point.x, point.y, path,null, null, null)) return null;
if (path [0] == 0) return null;
int /*long*/ indices = OS.gtk_tree_path_get_indices (path [0]);
TableItem item = null;
if (indices != 0) {
int [] index = new int [1];
OS.memmove (index, indices, 4);
item = _getItem (index [0]);
}
OS.gtk_tree_path_free (path [0]);
return item;
}
我想这可能是我的 GTK 库。我安装了 GTK2 库。