Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 296085
Collapse All | Expand All

(-)Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java (-3 / +9 lines)
Lines 2046-2058 Link Here
2046
		}
2046
		}
2047
		list = OS.g_list_next (list);
2047
		list = OS.g_list_next (list);
2048
	}
2048
	}
2049
	int /*long*/ columnHandle = 0;
2049
	int /*long*/ columnHandle = OS.g_list_data (columns);
2050
	if (fixVisible) {
2050
	if (fixVisible) {
2051
		columnHandle = OS.g_list_data (columns);
2052
		OS.gtk_tree_view_column_set_visible (columnHandle, true);
2051
		OS.gtk_tree_view_column_set_visible (columnHandle, true);
2053
	}
2052
	}
2054
	super.gtk_widget_size_request (widget, requisition);
2053
	super.gtk_widget_size_request (widget, requisition);
2055
	if (fixVisible) {
2054
	/*
2055
	* While the size is allocated for Table, there is a 
2056
	* chance that the table column has the width set (and turned 
2057
	* visible) in SetData listener code. In that case, the 
2058
	* column's visibility should not set back to false.
2059
	*/
2060
	int columnWidth = OS.gtk_tree_view_column_get_fixed_width (columnHandle);
2061
	if (fixVisible && columnWidth == 0) {
2056
		OS.gtk_tree_view_column_set_visible (columnHandle, false);
2062
		OS.gtk_tree_view_column_set_visible (columnHandle, false);
2057
	}
2063
	}
2058
	if (columns != 0) OS.g_list_free (columns);
2064
	if (columns != 0) OS.g_list_free (columns);

Return to bug 296085