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

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

Issue 9359052: GTK: Closing in on being completely GSEALed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/gtk_theme_service.cc ('k') | chrome/browser/ui/gtk/infobars/infobar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_util.cc
diff --git a/chrome/browser/ui/gtk/gtk_util.cc b/chrome/browser/ui/gtk/gtk_util.cc
index 4aa5a8af4690719fe311779ca57247c2320f23c7..c424f5179757627fb7bcca3ebc0848581faa8de8 100644
--- a/chrome/browser/ui/gtk/gtk_util.cc
+++ b/chrome/browser/ui/gtk/gtk_util.cc
@@ -336,7 +336,7 @@ void SetWindowSizeFromResources(GtkWindow* window,
// controls, we should allow that too, so be careful to pick the
// wider of the resources size and the natural window size.
- gtk_widget_show_all(GTK_BIN(window)->child);
+ gtk_widget_show_all(gtk_bin_get_child(GTK_BIN(window)));
GtkRequisition requisition;
gtk_widget_size_request(GTK_WIDGET(window), &requisition);
gtk_widget_set_size_request(
@@ -1116,7 +1116,7 @@ string16 GetStockPreferencesMenuLabel() {
bool IsWidgetAncestryVisible(GtkWidget* widget) {
GtkWidget* parent = widget;
while (parent && gtk_widget_get_visible(parent))
- parent = parent->parent;
+ parent = gtk_widget_get_parent(parent);
return !parent;
}
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | chrome/browser/ui/gtk/infobars/infobar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698