Commit ea097c60 authored by ncj674@motorola.com's avatar ncj674@motorola.com

Linux/Gtk: Setting "can-focus" to FALSE for edit link in avatar menu.

edit link steals focus from menu item which hides edit link button in focus-out-event handler, so, it misses the click event.

BUG=107348
TEST=As described in the bug.

Review URL: http://codereview.chromium.org/8933005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114241 0039d316-1c4b-4281-b951-d872f2087c98
parent 59eca0ff
......@@ -294,6 +294,10 @@ void AvatarMenuItemGtk::Init(GtkThemeService* theme_service) {
// The "edit your profile" link.
edit_profile_link_ = gtk_chrome_link_button_new(
l10n_util::GetStringUTF8(IDS_PROFILES_EDIT_PROFILE_LINK).c_str());
// Fix for bug#107348. edit link steals focus from menu item which
// hides edit link button in focus-out-event handler,
// so, it misses the click event.
gtk_widget_set_can_focus(edit_profile_link_, FALSE);
link_alignment_ = gtk_alignment_new(0, 0, 0, 0);
gtk_container_add(GTK_CONTAINER(link_alignment_), edit_profile_link_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment