summaryrefslogtreecommitdiff
path: root/sdk-updates
diff options
context:
space:
mode:
authorJoe Baker-Malone <jbakermalone@google.com>2015-07-29 11:53:51 -0700
committerJoe Baker-Malone <jbakermalone@google.com>2015-07-29 11:53:51 -0700
commit41d626551071e74fee18415ec4b4599b2f46ff8b (patch)
tree936466c899d749edf79db172227684c192186d30 /sdk-updates
parentf0c45a1e39c216d364ec3297cac7130eac8bbe5a (diff)
downloadidea-41d626551071e74fee18415ec4b4599b2f46ff8b.tar.gz
Semi-fixing GTK+ issue in sdk manager
Previously when using GTK+ theme the SDK manager would paint the selected package name as white text on a white background. Now it paints it correctly, except that the part of the "name" column of the selected row that isn't actually the label itself (that is, the blank part on the sides of the checkbox and text) are painted as a different color from the rest of the row. It seems this is a limitation of TreeTable and GTK+, as it is seen elsewhere in IJ and Studio. Fixes https://code.google.com/p/android/issues/detail?id=181490 Change-Id: I3dd82a21b25575688035c3cec499d3a654ce931d
Diffstat (limited to 'sdk-updates')
-rw-r--r--sdk-updates/src/com/android/tools/idea/updater/configure/SdkUpdaterConfigPanel.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/sdk-updates/src/com/android/tools/idea/updater/configure/SdkUpdaterConfigPanel.java b/sdk-updates/src/com/android/tools/idea/updater/configure/SdkUpdaterConfigPanel.java
index f2803e66652..a963fd6a612 100644
--- a/sdk-updates/src/com/android/tools/idea/updater/configure/SdkUpdaterConfigPanel.java
+++ b/sdk-updates/src/com/android/tools/idea/updater/configure/SdkUpdaterConfigPanel.java
@@ -60,8 +60,6 @@ import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.event.HyperlinkEvent;
-import javax.swing.tree.DefaultTreeSelectionModel;
-import javax.swing.tree.TreePath;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
@@ -215,17 +213,6 @@ public class SdkUpdaterConfigPanel {
new CheckboxClickListener(tt, renderer).installOn(tt);
TreeUtil.installActions(tt.getTree());
- tt.getTree().setSelectionModel(new DefaultTreeSelectionModel() {
- @Override
- public void addSelectionPaths(TreePath[] path) {
- // do nothing
- }
-
- @Override
- public void setSelectionPaths(TreePath[] path) {
- // do nothing
- }
- });
tt.getTree().setToggleClickCount(0);
tt.getTree().setShowsRootHandles(true);