diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2013-07-19 10:45:35 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2013-07-19 10:45:35 -0400 |
commit | 970fb16c86027f0ba92bd9011610c3781567e22f (patch) | |
tree | b90df9e51af42ecbc5fa081138f8baf6ac2e0078 | |
parent | 3badf881a37b9808e3b829dac9255767efd7162c (diff) | |
download | eclipse.platform.swt-cleanup_control_210.tar.gz eclipse.platform.swt-cleanup_control_210.tar.xz eclipse.platform.swt-cleanup_control_210.zip |
Bug 413335 - Remove unused 2.8 code from Control widgetcleanup_control_210
Signed-off-by: Anatoly Spektor <aspektor@redhat.com>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 19 |
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; } } |