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

Unified Diff: chrome/browser/ui/gtk/task_manager_gtk.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, 12 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/task_manager_gtk.cc
diff --git a/chrome/browser/ui/gtk/task_manager_gtk.cc b/chrome/browser/ui/gtk/task_manager_gtk.cc
index 55f5456bf8d4b9cc4ba278b05f2ff8550e885e0d..eef7039b708d4d1b9f8cbbe8790009f8f68cb243 100644
--- a/chrome/browser/ui/gtk/task_manager_gtk.cc
+++ b/chrome/browser/ui/gtk/task_manager_gtk.cc
@@ -499,13 +499,13 @@ void TaskManagerGtk::Init() {
// Setting the link widget to secondary positions the button on the left side
// of the action area (vice versa for RTL layout).
- gtk_button_box_set_child_secondary(
- GTK_BUTTON_BOX(GTK_DIALOG(dialog_)->action_area), link, TRUE);
+ GtkWidget* action_area = gtk_dialog_get_action_area(GTK_DIALOG(dialog_));
+ gtk_button_box_set_child_secondary(GTK_BUTTON_BOX(action_area), link, TRUE);
ConnectAccelerators();
- gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(dialog_)->vbox),
- ui::kContentAreaSpacing);
+ GtkWidget* content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog_));
+ gtk_box_set_spacing(GTK_BOX(content_area), ui::kContentAreaSpacing);
destroy_handler_id_ = g_signal_connect(dialog_, "destroy",
G_CALLBACK(OnDestroyThunk), this);
« no previous file with comments | « chrome/browser/ui/gtk/instant_confirm_dialog_gtk.cc ('k') | chrome/browser/ui/gtk/update_recommended_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698