From 3292fbf3f00afd34cba4da1d00d883a6449e1f39 Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Fri, 26 Oct 2012 12:58:56 +0100 Subject: Menu is fully updated when receiving a HUD activation event. Change-Id: I4d275bc01ac0baa265d22dcd849020e8f51fc447 --- vcl/unx/gtk/window/gtkframe.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx index 9fa7a5f31c47..80e4d193230c 100644 --- a/vcl/unx/gtk/window/gtkframe.cxx +++ b/vcl/unx/gtk/window/gtkframe.cxx @@ -515,7 +515,14 @@ static void ObjectDestroyedNotify( gpointer data ) static void hud_activated( gboolean hud_active, gpointer user_data ) { - printf("HUD active state: %d\n", hud_active); + if ( hud_activated ) + { + GtkSalFrame* pSalFrame = reinterpret_cast< GtkSalFrame* >( user_data ); + GtkSalMenu* pSalMenu = reinterpret_cast< GtkSalMenu* >( pSalFrame->GetMenu() ); + + if ( pSalMenu ) + pSalMenu->UpdateFull(); + } } gboolean ensure_dbus_setup( gpointer data ) -- cgit v1.2.3