Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2015-09-09 13:11:01 -0400
committerSam Davis2015-09-09 13:11:01 -0400
commitcbd98a2f79e98d0bccff707a7536eeedd376fa3f (patch)
treeaa1f0b56809ad63548b3d23cc3b179d32db53bee
parent304393bd6fde6b648d93870a825377a3b7eb6872 (diff)
downloadorg.eclipse.mylyn.tasks-cbd98a2f79e98d0bccff707a7536eeedd376fa3f.tar.gz
org.eclipse.mylyn.tasks-cbd98a2f79e98d0bccff707a7536eeedd376fa3f.tar.xz
org.eclipse.mylyn.tasks-cbd98a2f79e98d0bccff707a7536eeedd376fa3f.zip
461443: [gtk3] custom task list drawer not working with GTK3
Change-Id: Id293eae26dbd198e4d9e93963c9370ad1513d960 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=461443
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
index b25e733fb..8bb0ecd06 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
@@ -128,17 +128,17 @@ public class CustomTaskListDecorationDrawer implements Listener {
if (data instanceof ITaskContainer) {
switch (event.type) {
case SWT.EraseItem: {
-// if ("gtk".equals(SWT.getPlatform())) { //$NON-NLS-1$
-// // GTK requires drawing on erase event so that images don't disappear when selected.
-// if (activationImage != null) {
-// drawActivationImage(activationImageOffset, event, activationImage);
-// }
-// if (!this.synchronizationOverlaid) {
-// if (data instanceof ITaskContainer) {
-// drawSyncronizationImage((ITaskContainer) data, event);
-// }
-// }
-// }
+ if ("gtk".equals(SWT.getPlatform())) { //$NON-NLS-1$
+ // GTK requires drawing on erase event so that images don't disappear when selected.
+ if (activationImage != null) {
+ drawActivationImage(activationImageOffset, event, activationImage);
+ }
+ if (!this.synchronizationOverlaid) {
+ if (data instanceof ITaskContainer) {
+ drawSyncronizationImage((ITaskContainer) data, event);
+ }
+ }
+ }
// TODO: would be nice not to do this on each item's painting
// String text = tree.getFilterControl().getText();

Back to the top