Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor2013-07-19 14:45:35 +0000
committerArun Thondapu2013-07-22 07:50:31 +0000
commit6638802f4d6df7cd8998fe1792af3843b8c46562 (patch)
tree558bae4466c3bbf3f78a6216f29220f536282627
parentad1bc0e9a7a5e44e054bd8f8f3d4eb795e227eb4 (diff)
downloadeclipse.platform.swt-6638802f4d6df7cd8998fe1792af3843b8c46562.tar.gz
eclipse.platform.swt-6638802f4d6df7cd8998fe1792af3843b8c46562.tar.xz
eclipse.platform.swt-6638802f4d6df7cd8998fe1792af3843b8c46562.zip
Bug 413335 - Remove unused 2.8 code from Control widget
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index 0bd3b6e410..17087836a8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -5442,25 +5442,6 @@ long /*int*/ windowProc (long /*int*/ handle, long /*int*/ arg0, long /*int*/ us
}
}
}
- if (OS.GTK_VERSION < OS.VERSION (2, 8, 0)) {
- Control control = findBackgroundControl ();
- if (control != null && control.backgroundImage != null) {
- GdkEventExpose gdkEvent = new GdkEventExpose ();
- OS.memmove (gdkEvent, arg0, GdkEventExpose.sizeof);
- long /*int*/ paintWindow = paintWindow();
- long /*int*/ window = gdkEvent.window;
- if (window != paintWindow) break;
- long /*int*/ gdkGC = OS.gdk_gc_new (window);
- OS.gdk_gc_set_clip_region (gdkGC, gdkEvent.region);
- int[] dest_x = new int[1], dest_y = new int[1];
- OS.gtk_widget_translate_coordinates (paintHandle (), control.paintHandle (), 0, 0, dest_x, dest_y);
- OS.gdk_gc_set_fill (gdkGC, OS.GDK_TILED);
- OS.gdk_gc_set_ts_origin (gdkGC, -dest_x [0], -dest_y [0]);
- OS.gdk_gc_set_tile (gdkGC, control.backgroundImage.pixmap);
- OS.gdk_draw_rectangle (window, gdkGC, 1, gdkEvent.area_x, gdkEvent.area_y, gdkEvent.area_width, gdkEvent.area_height);
- OS.g_object_unref (gdkGC);
- }
- }
break;
}
}

Back to the top