summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-20 12:53:06 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:43 +0200
commitf44f35548d0bab40db636fc64a9e6d3c5677171f (patch)
tree39b6a1a1be80af881de6fb3776a7d1b085dbb9dd /gdk
parente8e657725cb8b2eb08a630a95b2d96be4055c7d6 (diff)
downloadgtk+-f44f35548d0bab40db636fc64a9e6d3c5677171f.tar.gz
quartz: Get rid of gdk_drawable_get_size() usage
Diffstat (limited to 'gdk')
-rw-r--r--gdk/quartz/gdkdrawable-quartz.c9
-rw-r--r--gdk/quartz/gdkwindow-quartz.c5
2 files changed, 6 insertions, 8 deletions
diff --git a/gdk/quartz/gdkdrawable-quartz.c b/gdk/quartz/gdkdrawable-quartz.c
index e9ccc560b0..8c6a141fa2 100644
--- a/gdk/quartz/gdkdrawable-quartz.c
+++ b/gdk/quartz/gdkdrawable-quartz.c
@@ -94,11 +94,10 @@ gdk_quartz_ref_cairo_surface (GdkDrawable *drawable)
if (!impl->cairo_surface)
{
- int width, height;
-
- gdk_drawable_get_size (impl->wrapper, &width, &height);
- impl->cairo_surface = gdk_quartz_create_cairo_surface (drawable,
- width, height);
+ impl->cairo_surface =
+ gdk_quartz_create_cairo_surface (drawable,
+ gdk_window_get_width (impl->wrapper),
+ gdk_window_get_height (impl->wrapper));
}
else
cairo_surface_reference (impl->cairo_surface);
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 43c4915952..ffdc83bc07 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -1246,9 +1246,8 @@ move_resize_window_internal (GdkWindow *window,
old_visible.x = -private->x;
old_visible.y = -private->y;
- gdk_drawable_get_size (GDK_DRAWABLE (private->parent),
- &old_visible.width,
- &old_visible.height);
+ old_visible.width = private->width;
+ old_visible.height = private->height;
}
if (x != -1)