Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java
index 08433b8107..5c82b3f469 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java
@@ -266,11 +266,11 @@ Point computeSizeInPixels (int wHint, int hHint, boolean changed) {
* So if the height is returned as zero calculate the table height
* based on the number of items in the table
*/
- if (size.y == 0 && hHint == SWT.DEFAULT) {
- size.y = getItemCount() * getItemHeightInPixels();
- }
+ if (size.y == 0 && hHint == SWT.DEFAULT) {
+ size.y = getItemCount() * getItemHeightInPixels();
+ }
- /*
+ /*
* In case the table doesn't contain any elements,
* getItemCount returns 0 and size.y will be 0
* so need to assign default height
@@ -950,8 +950,8 @@ long gtk_button_release_event (long widget, long event) {
if ((eventState[0] & (GDK.GDK_CONTROL_MASK|GDK.GDK_SHIFT_MASK)) == 0) {
GTK.gtk_tree_view_set_cursor(handle, path[0], 0, false);
}
- // Check to see if there has been a new tree item selected when holding Control in Path.
- // If not, deselect the item.
+ // Check to see if there has been a new tree item selected when holding Control in Path.
+ // If not, deselect the item.
if ((eventState[0] & GDK.GDK_CONTROL_MASK) != 0 && selectionCountOnRelease == selectionCountOnPress) {
GTK.gtk_tree_selection_unselect_path (selection,path[0]);
}

Back to the top