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

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

Issue 7748026: content: Reapply "Start splitting up chrome/browser/ui/gtk/gtk_util.h" (r98287) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on Monday. Created 9 years, 4 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/create_application_shortcuts_dialog_gtk.cc
diff --git a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.cc b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.cc
index 8ef68f94d51b11781b459f3ceda356a2c6aa7ee8..8229d4459ce18fdd8aa9c0af27f060bac016ebb8 100644
--- a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.cc
+++ b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.cc
@@ -22,6 +22,7 @@
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
#include "grit/theme_resources.h"
+#include "ui/base/gtk/gtk_hig_constants.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/gtk_util.h"
@@ -102,17 +103,17 @@ void CreateApplicationShortcutsDialogGtk::CreateDialogBox(GtkWindow* parent) {
GtkWidget* content_area =
gtk_dialog_get_content_area(GTK_DIALOG(create_dialog_));
- gtk_box_set_spacing(GTK_BOX(content_area), gtk_util::kContentAreaSpacing);
+ gtk_box_set_spacing(GTK_BOX(content_area), ui::kContentAreaSpacing);
- GtkWidget* vbox = gtk_vbox_new(FALSE, gtk_util::kControlSpacing);
+ GtkWidget* vbox = gtk_vbox_new(FALSE, ui::kControlSpacing);
gtk_container_add(GTK_CONTAINER(content_area), vbox);
// Create a box containing basic information about the new shortcut: an image
// on the left, and a description on the right.
- GtkWidget* hbox = gtk_hbox_new(FALSE, gtk_util::kControlSpacing);
+ GtkWidget* hbox = gtk_hbox_new(FALSE, ui::kControlSpacing);
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
gtk_container_set_border_width(GTK_CONTAINER(hbox),
- gtk_util::kControlSpacing);
+ ui::kControlSpacing);
// Put the icon preview in place.
GtkWidget* favicon_image = gtk_image_new_from_pixbuf(favicon_pixbuf_);
@@ -131,7 +132,7 @@ void CreateApplicationShortcutsDialogGtk::CreateDialogBox(GtkWindow* parent) {
gtk_util::GetWidgetSizeFromResources(
description_label,
IDS_CREATE_SHORTCUTS_DIALOG_WIDTH_CHARS, -1, &label_width, NULL);
- label_width -= gtk_util::kControlSpacing * 3 +
+ label_width -= ui::kControlSpacing * 3 +
gdk_pixbuf_get_width(favicon_pixbuf_);
gtk_util::SetLabelWidth(description_label, label_width);
@@ -243,9 +244,9 @@ void CreateApplicationShortcutsDialogGtk::ShowErrorDialog() {
false); // resizable
GtkWidget* content_area =
gtk_dialog_get_content_area(GTK_DIALOG(error_dialog_));
- gtk_box_set_spacing(GTK_BOX(content_area), gtk_util::kContentAreaSpacing);
+ gtk_box_set_spacing(GTK_BOX(content_area), ui::kContentAreaSpacing);
- GtkWidget* vbox = gtk_vbox_new(FALSE, gtk_util::kControlSpacing);
+ GtkWidget* vbox = gtk_vbox_new(FALSE, ui::kControlSpacing);
gtk_container_add(GTK_CONTAINER(content_area), vbox);
// Label on top of the checkboxes.
« no previous file with comments | « chrome/browser/ui/gtk/content_setting_bubble_gtk.cc ('k') | chrome/browser/ui/gtk/crypto_module_password_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698