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

Unified Diff: chrome/browser/chromeos/native_dialog_window.cc

Issue 7569012: gtk: Use gtk_dialog_get_content_area() throughout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/about_chrome_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/native_dialog_window.cc
diff --git a/chrome/browser/chromeos/native_dialog_window.cc b/chrome/browser/chromeos/native_dialog_window.cc
index c79bfcebfb636d27aba3556b35157ba9719a7cb8..f068649805db95140f11ec0eae6e10f8f8650c12 100644
--- a/chrome/browser/chromeos/native_dialog_window.cc
+++ b/chrome/browser/chromeos/native_dialog_window.cc
@@ -225,11 +225,11 @@ void NativeDialogHost::Init() {
kDialogPadding, kDialogPadding);
// Move dialog contents into our container.
- GtkWidget* dialog_contents = GTK_DIALOG(dialog_)->vbox;
- g_object_ref(dialog_contents);
- gtk_container_remove(GTK_CONTAINER(dialog_), dialog_contents);
- gtk_container_add(GTK_CONTAINER(contents), dialog_contents);
- g_object_unref(dialog_contents);
+ GtkWidget* content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog_));
+ g_object_ref(content_area);
+ gtk_container_remove(GTK_CONTAINER(dialog_), content_area);
+ gtk_container_add(GTK_CONTAINER(contents), content_area);
+ g_object_unref(content_area);
gtk_widget_hide(dialog_);
g_object_set_data(G_OBJECT(dialog_), kNativeDialogHost,
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/about_chrome_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698