Re: popup menu positioned partially off-screen

Nevermind. This behaviour was due to using the lazy
gtk_widget_show_all() after the gtk_menu_popup(). Since I placed the
menu items in the menu but delayed the gtk_widget_show(), the
requisition information was not correct when gtk_menu_popup() called
gtk_menu_position(). Doing explicit gtk_widget_show() on each menu item
before the gtk_menu_popup() corrects the problem. Placing
gtk_widget_show_all() before gtk_menu_popup() also works.


Luciano Chavez

lnx1138 us ibm com 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]