Revision
26827
Author
pgardner
Date
2012-01-07 23:58:16 +0000 (Sat, 07 Jan 2012)

Log Message

fix osx

Modified Paths

Diff

Modified: client/trunk/azureus2/src/org/gudy/azureus2/ui/swt/views/ManagerView.java (26826 => 26827)


--- client/trunk/azureus2/src/org/gudy/azureus2/ui/swt/views/ManagerView.java	2012-01-06 18:57:22 UTC (rev 26826)
+++ client/trunk/azureus2/src/org/gudy/azureus2/ui/swt/views/ManagerView.java	2012-01-07 23:58:16 UTC (rev 26827)
@@ -1066,6 +1066,28 @@
 						}
 					}
 				});
+				
+					// pick up changes in the text control's bg color and propagate to the bubble
+				
+				textWidget.addPaintListener(
+					new PaintListener()
+					{
+						private Color existing_bg;
+						
+						public void 
+						paintControl(
+							PaintEvent arg0 )
+						{
+							Color current_bg = textWidget.getBackground();
+							
+							if ( current_bg != existing_bg ){
+								
+								existing_bg = current_bg;
+								
+								cBubble.redraw();
+							}
+						}
+					});
 			}
 			
 			textWidget.addModifyListener(new ModifyListener() {
@@ -1079,28 +1101,6 @@
 				}
 			});
 			
-			// pick up changes in the text control's bg color and propagate to the bubble
-			
-			textWidget.addPaintListener(
-				new PaintListener()
-				{
-					private Color existing_bg;
-					
-					public void 
-					paintControl(
-						PaintEvent arg0 )
-					{
-						Color current_bg = textWidget.getBackground();
-						
-						if ( current_bg != existing_bg ){
-							
-							existing_bg = current_bg;
-							
-							cBubble.redraw();
-						}
-					}
-				});
-			
 			control = cBubble == null ? textWidget : cBubble;
 		}
 	

Modified: client/trunk/azureus3/src/com/aelitis/azureus/ui/swt/skin/SWTSkinObjectTextbox.java (26826 => 26827)


--- client/trunk/azureus3/src/com/aelitis/azureus/ui/swt/skin/SWTSkinObjectTextbox.java	2012-01-06 18:57:22 UTC (rev 26826)
+++ client/trunk/azureus3/src/com/aelitis/azureus/ui/swt/skin/SWTSkinObjectTextbox.java	2012-01-07 23:58:16 UTC (rev 26827)
@@ -19,8 +19,6 @@
 package com.aelitis.azureus.ui.swt.skin;
 
 import java.util.Arrays;
-import java.util.List;
-import java.util.concurrent.CopyOnWriteArrayList;
 
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.*;
@@ -33,7 +31,6 @@
 
 import org.gudy.azureus2.core3.util.AERunnable;
 import org.gudy.azureus2.core3.util.Constants;
-import org.gudy.azureus2.core3.util.Debug;
 import org.gudy.azureus2.ui.swt.Utils;
 
 /**
@@ -170,6 +167,28 @@
 					}
 				}
 			});
+			
+				// pick up changes in the text control's bg color and propagate to the bubble
+			
+			textWidget.addPaintListener(
+				new PaintListener()
+				{
+					private Color existing_bg;
+					
+					public void 
+					paintControl(
+						PaintEvent arg0 )
+					{
+						Color current_bg = textWidget.getBackground();
+						
+						if ( current_bg != existing_bg ){
+							
+							existing_bg = current_bg;
+							
+							cBubble.redraw();
+						}
+					}
+				});
 		}
 		
 		textWidget.addModifyListener(new ModifyListener() {
@@ -183,28 +202,6 @@
 			}
 		});
 		
-			// pick up changes in the text control's bg color and propagate to the bubble
-		
-		textWidget.addPaintListener(
-			new PaintListener()
-			{
-				private Color existing_bg;
-				
-				public void 
-				paintControl(
-					PaintEvent arg0 )
-				{
-					Color current_bg = textWidget.getBackground();
-					
-					if ( current_bg != existing_bg ){
-						
-						existing_bg = current_bg;
-						
-						cBubble.redraw();
-					}
-				}
-			});
-		
 		String message = properties.getStringValue(configID + ".message", (String) null);
 		if (message != null && message.length() > 0) {
 			textWidget.setMessage(message);