diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2004-04-08 21:56:00 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2004-04-08 21:56:00 +0000 |
commit | 78781a5a0876c4031f37e55c1615497766c1cfb0 (patch) | |
tree | 0f587f1906ad67b34fc64052a73a1579a83fecc9 /native | |
parent | 3f9ad4b390b7455a9957a717526515f0fac24f4a (diff) | |
download | classpath-78781a5a0876c4031f37e55c1615497766c1cfb0.tar.gz |
2004-04-08 Thomas Fitzsimmons <fitzsim@redhat.com>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
(accel_attach): Comment out _gtk_accel_group_attach call.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
(setupAccelGroup): Likewise.
Diffstat (limited to 'native')
-rw-r--r-- | native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c | 4 | ||||
-rw-r--r-- | native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c b/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c index 63e6a7401..1dc8fb2a9 100644 --- a/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c +++ b/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c @@ -46,8 +46,12 @@ accel_attach (GtkMenuItem *menu_item, GtkAccelGroup *accel; accel = gtk_menu_get_accel_group (GTK_MENU (menu_item->submenu)); + // FIXME: _gtk_accel_group_attach is a GTK-private function, so + // we'll need a different approach here: +#if 0 _gtk_accel_group_attach (accel, G_OBJECT (gtk_widget_get_toplevel (GTK_WIDGET(menu_item)))); +#endif } JNIEXPORT void JNICALL Java_gnu_java_awt_peer_gtk_GtkMenuPeer_setupAccelGroup diff --git a/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c b/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c index c5a223037..761b8f6ef 100644 --- a/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c +++ b/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c @@ -91,7 +91,11 @@ Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup gdk_threads_enter (); menu = GTK_MENU (GTK_MENU_ITEM (ptr1)->submenu); gtk_menu_set_accel_group (menu, gtk_accel_group_new ()); + // FIXME: _gtk_accel_group_attach is a GTK-private function, so + // we'll need a different approach here: +#if 0 _gtk_accel_group_attach (gtk_menu_get_accel_group (menu), G_OBJECT (gtk_widget_get_toplevel (ptr2))); +#endif gdk_threads_leave (); } |