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

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

Issue 9113033: GTK: More raw struct access removal, this time focusing on GtkDialog. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/gtk/certificate_viewer.cc ('k') | chrome/browser/ui/gtk/external_protocol_dialog_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/edit_search_engine_dialog.cc
diff --git a/chrome/browser/ui/gtk/edit_search_engine_dialog.cc b/chrome/browser/ui/gtk/edit_search_engine_dialog.cc
index cba847fe22ede49421a01a29baf5ae6fe92e6fff..c5efb1d77668836a0c2b31a269b034b660fc97b9 100644
--- a/chrome/browser/ui/gtk/edit_search_engine_dialog.cc
+++ b/chrome/browser/ui/gtk/edit_search_engine_dialog.cc
@@ -179,8 +179,9 @@ void EditSearchEngineDialog::Init(GtkWindow* parent_window, Profile* profile) {
l10n_util::GetStringUTF8(IDS_SEARCH_ENGINES_EDITOR_URL_LABEL).c_str(),
gtk_util::CreateEntryImageHBox(url_entry_, url_image_),
NULL);
- gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog_)->vbox), controls,
- FALSE, FALSE, 0);
+
+ GtkWidget* content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog_));
+ gtk_box_pack_start(GTK_BOX(content_area), controls, FALSE, FALSE, 0);
// On RTL UIs (such as Arabic and Hebrew) the description text is not
// displayed correctly since it contains the substring "%s". This substring
@@ -204,11 +205,10 @@ void EditSearchEngineDialog::Init(GtkWindow* parent_window, Profile* profile) {
}
GtkWidget* description_label = gtk_label_new(description.c_str());
- gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog_)->vbox), description_label,
+ gtk_box_pack_start(GTK_BOX(content_area), description_label,
FALSE, FALSE, 0);
- gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(dialog_)->vbox),
- ui::kContentAreaSpacing);
+ gtk_box_set_spacing(GTK_BOX(content_area), ui::kContentAreaSpacing);
EnableControls();
« no previous file with comments | « chrome/browser/ui/gtk/certificate_viewer.cc ('k') | chrome/browser/ui/gtk/external_protocol_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698