summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/window/gtkframe.cxx
diff options
context:
space:
mode:
authorAntonio Fernandez <antonio.fernandez@aentos.es>2012-10-26 12:58:56 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-11-14 13:52:59 +0100
commit3292fbf3f00afd34cba4da1d00d883a6449e1f39 (patch)
tree6cc501ed3b9716775cd0117e15fe7c260354110e /vcl/unx/gtk/window/gtkframe.cxx
parent8a253188410c82f696da7201d28a02d905154e6d (diff)
Menu is fully updated when receiving a HUD activation event.
Change-Id: I4d275bc01ac0baa265d22dcd849020e8f51fc447
Diffstat (limited to 'vcl/unx/gtk/window/gtkframe.cxx')
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx9
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 )