shell-app: Update app menu if necessary

Currently we assume that GTK_UNIQUE_BUS_NAME is shared between all
windows of an application. This assumption does not hold true for
applications that specify G_APPLICATION_NON_UNIQUE, so make sure
to update the menu as necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=676238
This commit is contained in:
Florian Müllner
2012-05-17 18:18:53 +02:00
parent f58e8f2a35
commit c303c6b5c1
3 changed files with 21 additions and 11 deletions

View File

@@ -357,7 +357,10 @@ update_focus_app (ShellWindowTracker *self)
new_focus_app = new_focus_win ? shell_window_tracker_get_window_app (self, new_focus_win) : NULL;
if (new_focus_app)
shell_app_update_window_actions (new_focus_app, new_focus_win);
{
shell_app_update_window_actions (new_focus_app, new_focus_win);
shell_app_update_app_menu (new_focus_app, new_focus_win);
}
set_focus_app (self, new_focus_app);
}