summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/gtk/PlatformScreenGtk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/gtk/PlatformScreenGtk.cpp')
-rw-r--r--WebCore/platform/gtk/PlatformScreenGtk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/gtk/PlatformScreenGtk.cpp b/WebCore/platform/gtk/PlatformScreenGtk.cpp
index 9341714..0ab00a1 100644
--- a/WebCore/platform/gtk/PlatformScreenGtk.cpp
+++ b/WebCore/platform/gtk/PlatformScreenGtk.cpp
@@ -64,7 +64,7 @@ static GdkVisual* getVisual(Widget* widget)
}
- return gdk_drawable_get_visual(GDK_DRAWABLE(container->window));
+ return gdk_drawable_get_visual(GDK_DRAWABLE(gtk_widget_get_window(container)));
}
int screenDepth(Widget* widget)
@@ -102,7 +102,7 @@ FloatRect screenRect(Widget* widget)
if (!screen)
return FloatRect();
- gint monitor = gdk_screen_get_monitor_at_window(screen, GTK_WIDGET(container)->window);
+ gint monitor = gdk_screen_get_monitor_at_window(screen, gtk_widget_get_window(GTK_WIDGET(container)));
GdkRectangle geometry;
gdk_screen_get_monitor_geometry(screen, monitor, &geometry);