summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 16:45:01 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 16:45:01 +0000
commit3a1180c19c84703bcbe240eb4fff1e88ddd6dd64 (patch)
tree9f838b08e58fbb6e4f7c942d2438867b05b0d325 /chrome/browser/gtk
parent19e00edbf03b3e2cc590c3905b6293be865c6f2d (diff)
downloadchromium_src-3a1180c19c84703bcbe240eb4fff1e88ddd6dd64.zip
chromium_src-3a1180c19c84703bcbe240eb4fff1e88ddd6dd64.tar.gz
chromium_src-3a1180c19c84703bcbe240eb4fff1e88ddd6dd64.tar.bz2
Add the IDC_GO mapping for the go button widget.
We previously crashed with a NOTREACHED() when you clicked the go button. Review URL: http://codereview.chromium.org/27205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/browser_toolbar_view_gtk.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_toolbar_view_gtk.cc b/chrome/browser/gtk/browser_toolbar_view_gtk.cc
index 48eed95..98dbb8f 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())