diff options
author | Antonio Fernandez <antonio.fernandez@aentos.es> | 2012-10-26 12:58:56 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-11-14 13:52:59 +0100 |
commit | 3292fbf3f00afd34cba4da1d00d883a6449e1f39 (patch) | |
tree | 6cc501ed3b9716775cd0117e15fe7c260354110e /vcl/unx | |
parent | 8a253188410c82f696da7201d28a02d905154e6d (diff) |
Menu is fully updated when receiving a HUD activation event.
Change-Id: I4d275bc01ac0baa265d22dcd849020e8f51fc447
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk/window/gtkframe.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
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 ) |