diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 21:34:11 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 21:34:11 +0000 |
commit | 6194ed16130515dbc750bfd164888fd9b4b70703 (patch) | |
tree | 6426ee1b2035b6f60f3db07a03265cd2dca33ace /chrome/browser/gtk/extension_installed_bubble_gtk.cc | |
parent | b1bc01f59c537e2588c408db74760e369e9d60c1 (diff) | |
download | chromium_src-6194ed16130515dbc750bfd164888fd9b4b70703.zip chromium_src-6194ed16130515dbc750bfd164888fd9b4b70703.tar.gz chromium_src-6194ed16130515dbc750bfd164888fd9b4b70703.tar.bz2 |
GTK: remove extra padding for extension popups.
Users of InfoBubbleGtk are now responsible for controlling the padding around the content.
BUG=32549
TEST=looking at the various info bubbles
Review URL: http://codereview.chromium.org/660151
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/extension_installed_bubble_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/extension_installed_bubble_gtk.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/gtk/extension_installed_bubble_gtk.cc b/chrome/browser/gtk/extension_installed_bubble_gtk.cc index 25b876e..e0becb4 100644 --- a/chrome/browser/gtk/extension_installed_bubble_gtk.cc +++ b/chrome/browser/gtk/extension_installed_bubble_gtk.cc @@ -29,7 +29,10 @@ const int kIconSize = 43; const int kTextColumnVerticalSpacing = 7; const int kTextColumnWidth = 350; -} +// Padding between content and edge of info bubble. +const int kContentBorder = 7; + +} // namespace void ExtensionInstalledBubbleGtk::Show(Extension *extension, Browser *browser, SkBitmap icon) { @@ -116,6 +119,7 @@ void ExtensionInstalledBubbleGtk::ShowInternal() { // Setup the InfoBubble content. GtkWidget* bubble_content = gtk_hbox_new(FALSE, kHorizontalColumnSpacing); + gtk_container_set_border_width(GTK_CONTAINER(bubble_content), kContentBorder); // Scale icon down to 43x43, but allow smaller icons (don't scale up). GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&icon_); |