I see what could cause a failure, we should simply don't call gtk_widget_show/hide but gtk_menu_bar_local_show/hide and set there the private structure, no need of new signals like in your patch
I see what could cause a failure, we should simply don't call gtk_widget_ show/hide but gtk_menu_ bar_local_ show/hide and set there the private structure, no need of new signals like in your patch