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

Unified Diff: chrome/browser/gtk/gtk_floating_container.cc

Issue 141004: Attempt to fix 14485. (Closed)
Patch Set: Created 11 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/gtk_floating_container.cc
diff --git a/chrome/browser/gtk/gtk_floating_container.cc b/chrome/browser/gtk/gtk_floating_container.cc
index 51f5e14ffff43e966145f4c54232746e07e89a7d..b9d0e4609942500fd5fdbdb32b495df0bdaf4648 100644
--- a/chrome/browser/gtk/gtk_floating_container.cc
+++ b/chrome/browser/gtk/gtk_floating_container.cc
@@ -172,12 +172,12 @@ static void gtk_floating_container_forall(GtkContainer* container,
gboolean include_internals,
GtkCallback callback,
gpointer callback_data) {
- GtkBin *bin = GTK_BIN(container);
-
+ g_return_if_fail(container != NULL);
g_return_if_fail(callback != NULL);
- if (bin->child)
- (*callback)(bin->child, callback_data);
+ // Let GtkBin do its part of the forall.
+ ((GTK_CONTAINER_CLASS(gtk_floating_container_parent_class))->forall)
+ (container, include_internals, callback, callback_data);
GtkFloatingContainer* floating = GTK_FLOATING_CONTAINER(container);
GList* children = floating->floating_children;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698