diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 00:53:13 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 00:53:13 +0000 |
commit | d436afdb563d7a1d13a6ea5974a26e0a56cf2aa1 (patch) | |
tree | 842cfe7d66fe6778e3bfebd19a2a720cc0bd2834 | |
parent | 3c893116ff098e544c178495d2d04c8f77372e19 (diff) | |
download | chromium_src-d436afdb563d7a1d13a6ea5974a26e0a56cf2aa1.zip chromium_src-d436afdb563d7a1d13a6ea5974a26e0a56cf2aa1.tar.gz chromium_src-d436afdb563d7a1d13a6ea5974a26e0a56cf2aa1.tar.bz2 |
GTK: set the new star button's ID
Fixes ViewIDTest.Basic
BUG=none
TEST=ViewIDTest.Basic
r=arv
Review URL: http://codereview.chromium.org/1578005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43154 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/gtk/location_bar_view_gtk.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc index 80119fa..06fd560 100644 --- a/chrome/browser/gtk/location_bar_view_gtk.cc +++ b/chrome/browser/gtk/location_bar_view_gtk.cc @@ -34,6 +34,7 @@ #include "chrome/browser/gtk/gtk_theme_provider.h" #include "chrome/browser/gtk/gtk_util.h" #include "chrome/browser/gtk/rounded_window.h" +#include "chrome/browser/gtk/view_id_util.h" #include "chrome/browser/profile.h" #include "chrome/browser/search_engines/template_url.h" #include "chrome/browser/search_engines/template_url_model.h" @@ -483,6 +484,7 @@ void LocationBarViewGtk::CreateStarButton() { star_image_ = gtk_image_new(); gtk_container_add(GTK_CONTAINER(star_.get()), star_image_); gtk_widget_show_all(star_.get()); + ViewIDUtil::SetID(star_.get(), VIEW_ID_STAR_BUTTON); g_signal_connect(star_.get(), "button-press-event", G_CALLBACK(OnStarButtonPressThunk), this); |