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

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

Issue 7227027: GTK: More 2.18 goodness. Move from macros to real accessor functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove views/ Created 9 years, 5 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_expanded_container.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_floating_container.cc
diff --git a/chrome/browser/ui/gtk/gtk_floating_container.cc b/chrome/browser/ui/gtk/gtk_floating_container.cc
index e3891a66e73b09d3d45dfa54a6f8204f38f28113..5309fc41cdb4eb42f0916194e88772dee94d3539 100644
--- a/chrome/browser/ui/gtk/gtk_floating_container.cc
+++ b/chrome/browser/ui/gtk/gtk_floating_container.cc
@@ -147,7 +147,7 @@ static void gtk_floating_container_remove(GtkContainer* container,
if (child->widget == widget) {
removed_child = true;
- gboolean was_visible = GTK_WIDGET_VISIBLE(widget);
+ gboolean was_visible = gtk_widget_get_visible(GTK_WIDGET(widget));
gtk_widget_unparent(widget);
@@ -156,7 +156,7 @@ static void gtk_floating_container_remove(GtkContainer* container,
g_list_free(children);
g_free(child);
- if (was_visible && GTK_WIDGET_VISIBLE(container))
+ if (was_visible && gtk_widget_get_visible(GTK_WIDGET(container)))
gtk_widget_queue_resize(GTK_WIDGET(container));
break;
@@ -236,7 +236,7 @@ static void gtk_floating_container_size_allocate(GtkWidget* widget,
reinterpret_cast<GtkFloatingContainerChild*>(children->data);
children = children->next;
- if (GTK_WIDGET_VISIBLE(child->widget)) {
+ if (gtk_widget_get_visible(GTK_WIDGET(child->widget))) {
gtk_widget_size_request(child->widget, &child_requisition);
child_allocation.x = allocation->x + child->x;
child_allocation.y = allocation->y + child->y;
« no previous file with comments | « chrome/browser/ui/gtk/gtk_expanded_container.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698