Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: chrome/browser/ui/gtk/password_generation_bubble_gtk.cc

Issue 10918275: [gtk] website settings bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slightly simpler drawing Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/password_generation_bubble_gtk.cc
diff --git a/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc b/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc
index 813bc24dbe47dcf1054b25cccdd18c2049e29711..774b81fbe8ce0da9f1cbfd6e4f6410bce0222b81 100644
--- a/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc
+++ b/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc
@@ -26,9 +26,6 @@
using content::RenderViewHost;
-const int kContentBorder = 4;
-const int kHorizontalSpacing = 4;
-
namespace {
GdkPixbuf* GetImage(int resource_id) {
@@ -65,7 +62,7 @@ PasswordGenerationBubbleGtk::PasswordGenerationBubbleGtk(
// The second contains the password in a text field, a regenerate button, and
// an accept button.
- GtkWidget* password_line = gtk_hbox_new(FALSE, kHorizontalSpacing);
+ GtkWidget* password_line = gtk_hbox_new(FALSE, ui::kControlSpacing);
text_field_ = gtk_entry_new();
gtk_entry_set_text(GTK_ENTRY(text_field_),
password_generator_->Generate().c_str());
@@ -78,7 +75,8 @@ PasswordGenerationBubbleGtk::PasswordGenerationBubbleGtk(
gtk_box_pack_start(GTK_BOX(password_line), text_field_, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(password_line), accept_button, TRUE, TRUE, 0);
- gtk_container_set_border_width(GTK_CONTAINER(content), kContentBorder);
+ gtk_container_set_border_width(GTK_CONTAINER(content),
+ ui::kContentAreaBorder);
gtk_box_pack_start(GTK_BOX(content), title_line, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(content), password_line, TRUE, TRUE, 0);
« no previous file with comments | « chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc ('k') | chrome/browser/ui/gtk/website_settings/permission_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698