Skip to content
Permalink
Browse files
8263977: GTK L&F: Cleanup duplicate checks in GTKStyle and GTKLookAnd…
…Feel

Reviewed-by: serb, pbansal, kizune
  • Loading branch information
shipilev committed Mar 23, 2021
1 parent 57d8f1d commit df01b15b8ba694191d79f4a24f44d97c649b6f43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -249,7 +249,6 @@ static boolean isText(Region region) {
region == Region.SPINNER ||
region == Region.TABLE ||
region == Region.TEXT_AREA ||
region == Region.TEXT_FIELD ||
region == Region.TEXT_PANE ||
region == Region.TREE);
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -166,8 +166,7 @@ else if (type == GTKColorType.WHITE) {
id == Region.TABBED_PANE_TAB ||
id == Region.TOGGLE_BUTTON ||
id == Region.TOOL_TIP ||
id == Region.MENU_ITEM_ACCELERATOR ||
id == Region.TABBED_PANE_TAB)) {
id == Region.MENU_ITEM_ACCELERATOR)) {
type = ColorType.FOREGROUND;
} else if (id == Region.TABLE ||
id == Region.LIST ||

0 comments on commit df01b15

Please sign in to comment.