Skip to content

Commit fb51ca1

Browse files
committed
Do not double check GTK4 in drawBackground.
1 parent 7f92e36 commit fb51ca1

File tree

1 file changed

+1
-5
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

1 file changed

+1
-5
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,7 @@ void drawBackground (Control control, long gdkResource, long cr, int x, int y, i
194194
cairo_rectangle_int_t regionRect = new cairo_rectangle_int_t ();
195195
int [] fetchedHeight = new int [1];
196196
int [] fetchedWidth = new int [1];
197-
if (GTK.GTK4) {
198-
gdk_surface_get_size(gdkResource, fetchedWidth, fetchedHeight);
199-
} else {
200-
gdk_window_get_size(gdkResource, fetchedWidth, fetchedHeight);
201-
}
197+
gdk_surface_get_size(gdkResource, fetchedWidth, fetchedHeight);
202198
regionRect.x = 0;
203199
regionRect.y = 0;
204200
regionRect.width = fetchedWidth[0];

0 commit comments

Comments
 (0)