From d436afdb563d7a1d13a6ea5974a26e0a56cf2aa1 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Wed, 31 Mar 2010 00:53:13 +0000 Subject: 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 --- chrome/browser/gtk/location_bar_view_gtk.cc | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.1