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

Unified Diff: chrome/browser/gtk/clear_browsing_data_dialog_gtk.cc

Issue 2813060: Gtk: Set default focus to the close button in the clear browsing data dialog.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 5 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/clear_browsing_data_dialog_gtk.cc
===================================================================
--- chrome/browser/gtk/clear_browsing_data_dialog_gtk.cc (revision 52555)
+++ chrome/browser/gtk/clear_browsing_data_dialog_gtk.cc (working copy)
@@ -44,10 +44,12 @@
dialog_name.c_str(),
parent,
(GtkDialogFlags) (GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR),
- GTK_STOCK_CLOSE,
- GTK_RESPONSE_REJECT,
NULL);
+ GtkWidget* close_button = gtk_dialog_add_button(GTK_DIALOG(dialog_),
+ GTK_STOCK_CLOSE, GTK_RESPONSE_REJECT);
+ gtk_widget_grab_focus(close_button);
+
accessible_widget_helper_.reset(new AccessibleWidgetHelper(dialog_, profile));
accessible_widget_helper_->SendOpenWindowNotification(dialog_name);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698