[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/23791] New: popup menu windows should be marked with MENU hint
From: |
fitzsim at redhat dot com |
Subject: |
[Bug awt/23791] New: popup menu windows should be marked with MENU hint |
Date: |
9 Sep 2005 03:50:25 -0000 |
This patch is a first attempt, but too general:
--- gnu/java/awt/peer/gtk/GtkWindowPeer.java 26 Aug 2005 04:35:49 -0000 1.41
+++ gnu/java/awt/peer/gtk/GtkWindowPeer.java 9 Sep 2005 03:43:23 -0000
@@ -44,6 +44,7 @@
import java.awt.event.ComponentEvent;
import java.awt.event.WindowEvent;
import java.awt.peer.WindowPeer;
+import javax.swing.JWindow;
public class GtkWindowPeer extends GtkContainerPeer
implements WindowPeer
@@ -91,8 +92,11 @@
void create ()
{
- // Create a normal undecorated window.
- create (GDK_WINDOW_TYPE_HINT_NORMAL, false);
+ if (awtComponent instanceof JWindow)
+ create (GDK_WINDOW_TYPE_HINT_MENU, false);
+ else
+ // Create a normal undecorated window.
+ create (GDK_WINDOW_TYPE_HINT_NORMAL, false);
}
void setParent ()
We need to use reflection to retrieve the JPopupMenu.Popup interface. If
awtComponent is an instance of JPopupMenu.Popup then its peer should be marked
with the MENU hint.
--
Summary: popup menu windows should be marked with MENU hint
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fitzsim at redhat dot com
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23791
- [Bug awt/23791] New: popup menu windows should be marked with MENU hint,
fitzsim at redhat dot com <=