src/solaris/classes/sun/awt/X11/XTrayIconPeer.java
Print this page
@@ -104,11 +104,11 @@
return;
}
XConfigureEvent ce = ev.get_xconfigure();
- if (ctrLog.isLoggable(PlatformLogger.FINE)) {
+ if (ctrLog.isLoggable(PlatformLogger.Level.FINE)) {
ctrLog.fine("ConfigureNotify on parent of {0}: {1}x{2}+{3}+{4} (old: {5}+{6})",
XTrayIconPeer.this, ce.get_width(), ce.get_height(),
ce.get_x(), ce.get_y(), old_x, old_y);
}
@@ -128,19 +128,19 @@
if (ce.get_height() != TRAY_ICON_HEIGHT && ce.get_width() != TRAY_ICON_WIDTH) {
// If both the height and the width differ from the fixed size then WM
// must level at least one side to the fixed size. For some reason it may take
// a few hops (even after reparenting) and we have to skip the intermediate ones.
- if (ctrLog.isLoggable(PlatformLogger.FINE)) {
+ if (ctrLog.isLoggable(PlatformLogger.Level.FINE)) {
ctrLog.fine("ConfigureNotify on parent of {0}. Skipping as intermediate resizing.",
XTrayIconPeer.this);
}
return;
} else if (ce.get_height() > TRAY_ICON_HEIGHT) {
- if (ctrLog.isLoggable(PlatformLogger.FINE)) {
+ if (ctrLog.isLoggable(PlatformLogger.Level.FINE)) {
ctrLog.fine("ConfigureNotify on parent of {0}. Centering by \"Y\".",
XTrayIconPeer.this);
}
XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), eframeParentID,
@@ -151,11 +151,11 @@
ex_height = ce.get_height();
ex_width = 0;
} else if (ce.get_width() > TRAY_ICON_WIDTH) {
- if (ctrLog.isLoggable(PlatformLogger.FINE)) {
+ if (ctrLog.isLoggable(PlatformLogger.Level.FINE)) {
ctrLog.fine("ConfigureNotify on parent of {0}. Centering by \"X\".",
XTrayIconPeer.this);
}
XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), eframeParentID,
@@ -171,11 +171,11 @@
// When some tray icon gets removed from the tray, a Java icon may be repositioned.
// In this case the parent window also lose centering. We have to restore it.
if (ex_height != 0) {
- if (ctrLog.isLoggable(PlatformLogger.FINE)) {
+ if (ctrLog.isLoggable(PlatformLogger.Level.FINE)) {
ctrLog.fine("ConfigureNotify on parent of {0}. Move detected. Centering by \"Y\".",
XTrayIconPeer.this);
}
XlibWrapper.XMoveWindow(XToolkit.getDisplay(), eframeParentID,
@@ -182,20 +182,20 @@
ce.get_x(),
ce.get_y() + ex_height/2 - TRAY_ICON_HEIGHT/2);
} else if (ex_width != 0) {
- if (ctrLog.isLoggable(PlatformLogger.FINE)) {
+ if (ctrLog.isLoggable(PlatformLogger.Level.FINE)) {
ctrLog.fine("ConfigureNotify on parent of {0}. Move detected. Centering by \"X\".",
XTrayIconPeer.this);
}
XlibWrapper.XMoveWindow(XToolkit.getDisplay(), eframeParentID,
ce.get_x() + ex_width/2 - TRAY_ICON_WIDTH/2,
ce.get_y());
} else {
- if (ctrLog.isLoggable(PlatformLogger.FINE)) {
+ if (ctrLog.isLoggable(PlatformLogger.Level.FINE)) {
ctrLog.fine("ConfigureNotify on parent of {0}. Move detected. Skipping.",
XTrayIconPeer.this);
}
}
}