Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5810)

Unified Diff: chrome/browser/ui/gtk/avatar_menu_bubble_gtk.cc

Issue 8834010: Linux GTK: Support keyboard navigation in avatar menu. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/avatar_menu_item_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/avatar_menu_bubble_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/avatar_menu_bubble_gtk.cc (revision 112677)
+++ chrome/browser/ui/gtk/avatar_menu_bubble_gtk.cc (working copy)
@@ -133,12 +133,16 @@
GtkWidget* items_vbox = gtk_vbox_new(FALSE, ui::kContentAreaSpacing);
for (size_t i = 0; i < profile_count; ++i) {
+ AvatarMenuModel::Item menu_item = avatar_menu_model_->GetItemAt(i);
AvatarMenuItemGtk* item = new AvatarMenuItemGtk(
- this, avatar_menu_model_->GetItemAt(i), i, theme_service_);
+ this, menu_item, i, theme_service_);
items_.push_back(item);
gtk_box_pack_start(GTK_BOX(items_vbox), item->widget(), TRUE, TRUE, 0);
+ gtk_widget_set_can_focus(item->widget(), TRUE);
+ if (menu_item.active)
+ gtk_container_set_focus_child(GTK_CONTAINER(items_vbox), item->widget());
}
gtk_box_pack_start(GTK_BOX(contents_), items_vbox, TRUE, TRUE, 0);
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/avatar_menu_item_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698