From a1e071118b7ed757f2c975a8fe188fdbe80fcdd1 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Wed, 3 Jun 2009 19:16:59 +0000 Subject: Implement more of the BookmarkBubble, connecting it to the bookmark system. This allows you to edit the bookmark title, and remove the bookmark. BUG=11738 TEST=Click the bookmark star, you should be able to edit the bookmark title and remove the bookmark. Review URL: http://codereview.chromium.org/119079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17514 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/toolbar_star_toggle_gtk.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'chrome/browser/gtk/toolbar_star_toggle_gtk.cc') diff --git a/chrome/browser/gtk/toolbar_star_toggle_gtk.cc b/chrome/browser/gtk/toolbar_star_toggle_gtk.cc index 4e03454..77c5732 100644 --- a/chrome/browser/gtk/toolbar_star_toggle_gtk.cc +++ b/chrome/browser/gtk/toolbar_star_toggle_gtk.cc @@ -7,10 +7,12 @@ #include "app/resource_bundle.h" #include "base/gfx/rect.h" #include "chrome/browser/gtk/bookmark_bubble_gtk.h" +#include "chrome/browser/gtk/browser_toolbar_gtk.h" #include "grit/theme_resources.h" -ToolbarStarToggleGtk::ToolbarStarToggleGtk() - : widget_(gtk_button_new()), +ToolbarStarToggleGtk::ToolbarStarToggleGtk(BrowserToolbarGtk* host) + : host_(host), + widget_(gtk_button_new()), is_starred_(false), unstarred_(IDR_STAR, IDR_STAR_P, IDR_STAR_H, IDR_STAR_D), starred_(IDR_STARRED, IDR_STARRED_P, IDR_STARRED_H, 0) { @@ -42,7 +44,7 @@ void ToolbarStarToggleGtk::ShowStarBubble(const GURL& url, BookmarkBubbleGtk::Show(GTK_WINDOW(gtk_widget_get_toplevel(widget)), gfx::Rect(x, y, width, height), - NULL, + host_->profile(), url, newly_bookmarked); } -- cgit v1.1