maemo.org Bugzilla – Bug 724
submenu disappears immediately when popped up
Last modified: 2007-12-04 14:24:33 UTC
You need to
before you can comment on or make changes to this bug.
once the submenu of home menu popped up, it will disappear at once.
i traced the program, and find out that the
gtk_menu_window_visibility_notify_event (defined in gtk/gtkmenu.c) is triggered
when the submenu shows (which is correct), however, when it calls (indirectly)
gdk_window_get_type_hint() (defined in gdk/x11/gdkwindow-x11.c) to know if the
window above is of type MENU of not, it gets the wrong answer.
it seems to be a bug, and here is a patch to fix it:
--- gtk+.orig/gdk/x11/gdkwindow-x11.c 2006-07-27 13:47:51.787949368 -0400
+++ gtk+/gdk/x11/gdkwindow-x11.c 2006-07-27 13:49:37.431889048 -0400
@@ -2261,7 +2261,7 @@
if ((type_return == XA_ATOM) && (format_return == 32) &&
(data) && (nitems_return == 1))
- Atom atom = (Atom) *data;
+ Atom atom = *(Atom*)data;
if (atom == gdk_x11_get_xatom_by_name_for_display (display,
type = GDK_WINDOW_TYPE_HINT_DIALOG;
Created an attachment (id=99) [details]
fix the submenu disappear problem
It would probably be a good idea to double-check all the written-from-scratch
code for similar bugs...
gtk bug, mine
Fixed in gtk+2.0 (2:2.6.10-2.osso9)
The patch has also been committed upstream. Thanks for the patch.
Closing RESOLVED and FIXED bug. No one has not touched or commented in last 180
days. If error/problem still occurs please reopen bug with comments.