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

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

Issue 27205: Add the IDC_GO mapping for the go button widget. (Closed)
Patch Set: typo Created 11 years, 10 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/browser_toolbar_view_gtk.cc
diff --git a/chrome/browser/gtk/browser_toolbar_view_gtk.cc b/chrome/browser/gtk/browser_toolbar_view_gtk.cc
index 48eed95b8967d3020ff808351def1651dabc5e12..98dbb8f7636e34472a667653f2a4c39e18a016a2 100644
--- a/chrome/browser/gtk/browser_toolbar_view_gtk.cc
+++ b/chrome/browser/gtk/browser_toolbar_view_gtk.cc
@@ -115,6 +115,9 @@ void BrowserToolbarGtk::EnabledStateChangedForCommand(int id, bool enabled) {
case IDC_RELOAD:
widget = reload_->widget();
break;
+ case IDC_GO:
+ widget = go_->widget();
+ break;
case IDC_HOME:
if (home_.get())
widget = home_->widget();
@@ -231,6 +234,8 @@ void BrowserToolbarGtk::OnButtonClick(GtkWidget* button,
tag = IDC_FORWARD;
else if (button == toolbar->reload_->widget())
tag = IDC_RELOAD;
+ else if (button == toolbar->go_->widget())
+ tag = IDC_GO;
else if (toolbar->home_.get() && button == toolbar->home_->widget())
tag = IDC_HOME;
else if (button == toolbar->star_->widget())
« 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