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

Unified Diff: ui/base/gtk/gtk_expanded_container.cc

Issue 8588068: GTK: Create the start of a compatibility header wrapping deprecated methods. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to ToT and remove views/ cleanups. Created 9 years, 1 month 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 | « ui/base/gtk/gtk_compat.h ('k') | ui/base/gtk/gtk_floating_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gtk/gtk_expanded_container.cc
diff --git a/ui/base/gtk/gtk_expanded_container.cc b/ui/base/gtk/gtk_expanded_container.cc
index e5b23b5b77295474b547bf6cebd24f2aca8db75f..bfc5a4606af7dd42973c9489fe30af24e8061b68 100644
--- a/ui/base/gtk/gtk_expanded_container.cc
+++ b/ui/base/gtk/gtk_expanded_container.cc
@@ -8,6 +8,8 @@
#include <algorithm>
+#include "ui/base/gtk/gtk_compat.h"
+
namespace {
enum {
@@ -143,7 +145,7 @@ static void gtk_expanded_container_size_allocate(GtkWidget* widget,
GtkAllocation* allocation) {
widget->allocation = *allocation;
- if (!GTK_WIDGET_NO_WINDOW(widget) && GTK_WIDGET_REALIZED(widget)) {
+ if (!GTK_WIDGET_NO_WINDOW(widget) && gtk_widget_get_realized(widget)) {
gdk_window_move_resize(widget->window,
allocation->x,
allocation->y,
@@ -180,7 +182,7 @@ void gtk_expanded_container_move(GtkExpandedContainer* container,
void gtk_expanded_container_set_has_window(GtkExpandedContainer* container,
gboolean has_window) {
g_return_if_fail(GTK_IS_EXPANDED_CONTAINER(container));
- g_return_if_fail(!GTK_WIDGET_REALIZED(container));
+ g_return_if_fail(!gtk_widget_get_realized(GTK_WIDGET(container)));
gtk_fixed_set_has_window(GTK_FIXED(container), has_window);
}
« no previous file with comments | « ui/base/gtk/gtk_compat.h ('k') | ui/base/gtk/gtk_floating_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698