diff options
author | Bogdan Gheorghe <gheorghe> | 2010-11-09 22:08:45 +0000 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe> | 2010-11-09 22:08:45 +0000 |
commit | 468bb5c1dc4835e864601a1d3d89f0e01abc31ae (patch) | |
tree | b41422755c65d3a449e0897a21f9a67f96a7aa71 /bundles/org.eclipse.swt/Eclipse SWT Theme | |
parent | 97de0febab29b4e6923b7e70a7cd2783b4ceda13 (diff) | |
download | eclipse.platform.swt-468bb5c1dc4835e864601a1d3d89f0e01abc31ae.tar.gz eclipse.platform.swt-468bb5c1dc4835e864601a1d3d89f0e01abc31ae.tar.xz eclipse.platform.swt-468bb5c1dc4835e864601a1d3d89f0e01abc31ae.zip |
Compiler warnings for unused variables
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Theme')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java index 3bab8a1be1..18af221b75 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java @@ -47,10 +47,10 @@ void draw(Theme theme, GC gc, Rectangle bounds) { int arrow_width = MIN_ARROW_SIZE; int arrow_height = ARROW_HEIGHT; int x_border = xthickness + focus_padding; - int y_border = ythickness + focus_padding; + //int y_border = ythickness + focus_padding; if (interior_focus == 0) { x_border += focus_line_width; - y_border += focus_line_width; + //y_border += focus_line_width; } int arrow_button_width = arrow_width + x_border * 2; int arrow_button_x = x + width - arrow_button_width; @@ -109,13 +109,14 @@ int hit(Theme theme, Point position, Rectangle bounds) { int ythickness = OS.gtk_style_get_xthickness(gtkStyle); int arrow_width = MIN_ARROW_SIZE; int x_border = xthickness + focus_padding; - int y_border = ythickness + focus_padding; + //int y_border = ythickness + focus_padding; if (interior_focus == 0) { x_border += focus_line_width; - y_border += focus_line_width; + //y_border += focus_line_width; } int arrow_button_width = arrow_width + x_border * 2; int arrow_button_x = bounds.x + bounds.width - arrow_button_width; + Rectangle arrowRect = new Rectangle(arrow_button_x, bounds.y, arrow_button_width, bounds.height); if (arrowRect.contains(position)) return DrawData.COMBO_ARROW; return DrawData.WIDGET_WHOLE; |