skin: added NO_FOCUS style flag to toggle button
authorgiwoong.kim <giwoong.kim@samsung.com>
Fri, 28 Dec 2012 07:01:36 +0000 (16:01 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Fri, 28 Dec 2012 07:04:29 +0000 (16:04 +0900)
The toggle button of key window should not
take focus from main window in general skin.

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/layout/GeneralPurposeSkinComposer.java

index 9194c70..33070ed 100644 (file)
@@ -149,7 +149,7 @@ public class GeneralPurposeSkinComposer implements ISkinComposer {
                                                loader.getResourceAsStream(PATCH_IMAGES_PATH + "arrow_pushed.png"));
 
                /* create a toggle button of key window */
-               toggleButton = new ImageButton(shell, SWT.DRAW_TRANSPARENT,
+               toggleButton = new ImageButton(shell, SWT.DRAW_TRANSPARENT | SWT.NO_FOCUS,
                                imageNormal, imageHover, imagePushed);
                toggleButton.setBackground(
                                new Color(shell.getDisplay(), new RGB(0x1f, 0x1f, 0x1f)));