diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 22:00:49 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 22:00:49 +0000 |
commit | 5933401aecca5c2a4be14e1b9566ce54af1fe9c0 (patch) | |
tree | 0beb068c9f5de923171373ce16b49d88c535fbd1 /views/controls | |
parent | 9cf9ed60e5dffc97a85572454682afb80e91611a (diff) | |
download | chromium_src-5933401aecca5c2a4be14e1b9566ce54af1fe9c0.zip chromium_src-5933401aecca5c2a4be14e1b9566ce54af1fe9c0.tar.gz chromium_src-5933401aecca5c2a4be14e1b9566ce54af1fe9c0.tar.bz2 |
Added battery status update in drop-down when power is changed.
BUG=10972
TEST=Click on battery icon to open power status drop-down, trigger power status change by plugging/unplugging power, make sure drop-down is updated.
Review URL: http://codereview.chromium.org/6312092
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73676 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls')
-rw-r--r-- | views/controls/menu/native_menu_gtk.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/views/controls/menu/native_menu_gtk.cc b/views/controls/menu/native_menu_gtk.cc index 78a4f68..c75ac2f 100644 --- a/views/controls/menu/native_menu_gtk.cc +++ b/views/controls/menu/native_menu_gtk.cc @@ -193,6 +193,8 @@ void NativeMenuGtk::Rebuild() { AddMenuItemAt(i, NULL, accel_group); } } + if (!menu_hidden_) + gtk_menu_reposition(GTK_MENU(menu_)); } void NativeMenuGtk::UpdateStates() { |