From 7fad658363452ab22d4a587dedc76be1dc16390f Mon Sep 17 00:00:00 2001 From: yanas Date: Tue, 26 Nov 2013 10:50:26 +0100 Subject: [PATCH] Fixes OTR icon. --- .../plugin/desktoputil/SIPCommButton.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/net/java/sip/communicator/plugin/desktoputil/SIPCommButton.java b/src/net/java/sip/communicator/plugin/desktoputil/SIPCommButton.java index 7ddd88061..28bd92a58 100644 --- a/src/net/java/sip/communicator/plugin/desktoputil/SIPCommButton.java +++ b/src/net/java/sip/communicator/plugin/desktoputil/SIPCommButton.java @@ -274,6 +274,25 @@ else if (this.iconImage != null) this); } + /** + * This method is called internally by Graphics.drawImage. This is necessary + * for properly updating the icon image of this SIPCommButton. + * + * @param img the image to update + * @param x the x coordinate + * @param y the y coordinate + * @param width the image width + * @param height the image height + * @return true if the image is updated + */ + @Override + public boolean imageUpdate( + Image img, int infoflags, int x, int y, int width, int height) + { + repaint(); + return true; + } + /** * Returns the background image of this button. *