aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2014-04-01 12:22:21 -0400
committerAlexander Kurtakov2014-04-01 12:22:21 -0400
commit3024a4845dd0062c8584cea1b092dd290e46f496 (patch)
treeb96fa9ca4ed61d1c65e6f5c3f8f1ed901ad3ddd5
parent51ec21c2cd3bd59c43f56d6719c402e5ed9e7106 (diff)
downloadeclipse.platform.swt-3024a4845dd0062c8584cea1b092dd290e46f496.zip
eclipse.platform.swt-3024a4845dd0062c8584cea1b092dd290e46f496.tar.gz
eclipse.platform.swt-3024a4845dd0062c8584cea1b092dd290e46f496.tar.xz
Fix wrong handle used in Widget.setFontDescription.
The passed handle should be used not the class member. Change-Id: I3babb73a4a2a774c2ff638c24c34226f79bde1e8 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
index 9501efc..0d6e011 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
@@ -1642,7 +1642,7 @@ public void setData (String key, Object value) {
void setFontDescription (long /*int*/ widget, long /*int*/ font) {
if (OS.GTK3) {
OS.gtk_widget_override_font (widget, font);
- long /*int*/ context = OS.gtk_widget_get_style_context (handle);
+ long /*int*/ context = OS.gtk_widget_get_style_context (widget);
OS.gtk_style_context_invalidate (context);
} else {
OS.gtk_widget_modify_font (widget, font);