[maemo-developers] Is the HildonAppMenu example correct?

From: Till Harbaum / Lists lists at harbaum.org
Date: Fri Jun 26 22:49:07 EEST 2009
Hi,

i am using HildonAppMenu for the next release of gpxview.
I have followed these instructions:

http://maemo.org/api_refs/5.0/beta/hildon/HildonAppMenu.html

The problem: If i add a menu to a newly created stackable window
this way, i see the menus background being displayed for a fraction
of a second before the new window is being displayed.

If i remove this
  // Show all menu items  
  gtk_widget_show_all (GTK_WIDGET (menu));
from the example, i don't have the annoying "ghost menu" being
displayed and the menu still works like it should.

Why does the example contain this gtk_widget_show_all() call?
It doesn't seem to be necessary and it even causes a visible 
glitch during menu creation.

Till
More information about the maemo-developers mailing list