gdk: Remove depth argument from GdkWindowImpl->get_geometry()

This commit is contained in:
Benjamin Otte 2010-12-05 14:40:35 +01:00
parent 645d0ac403
commit d55073fde6
6 changed files with 6 additions and 21 deletions

View File

@ -549,8 +549,7 @@ gdk_offscreen_window_get_geometry (GdkWindow *window,
gint *x,
gint *y,
gint *width,
gint *height,
gint *depth)
gint *height)
{
if (!GDK_WINDOW_DESTROYED (window))
{
@ -562,8 +561,6 @@ gdk_offscreen_window_get_geometry (GdkWindow *window,
*width = window->width;
if (height)
*height = window->height;
if (depth)
*depth = window->depth;
}
}

View File

@ -6859,8 +6859,7 @@ gdk_window_get_geometry (GdkWindow *window,
{
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
impl_class->get_geometry (window, x, y,
width, height,
NULL);
width, height);
/* This reports the position wrt to the native parent, we need to convert
it to be relative to the client side parent */
parent = window->parent;

View File

@ -91,8 +91,7 @@ struct _GdkWindowImplClass
gint *x,
gint *y,
gint *width,
gint *height,
gint *depth);
gint *height);
gint (* get_root_coords) (GdkWindow *window,
gint x,
gint y,

View File

@ -1645,8 +1645,7 @@ gdk_window_quartz_get_geometry (GdkWindow *window,
gint *x,
gint *y,
gint *width,
gint *height,
gint *depth)
gint *height)
{
GdkWindowImplQuartz *impl;
GdkWindowObject *private;
@ -1713,9 +1712,6 @@ gdk_window_quartz_get_geometry (GdkWindow *window,
if (height)
*height = ns_rect.size.height;
}
if (depth)
*depth = gdk_visual_get_depth (gdk_window_get_visual (window));
}
static gint

View File

@ -1800,8 +1800,7 @@ gdk_win32_window_get_geometry (GdkWindow *window,
gint *x,
gint *y,
gint *width,
gint *height,
gint *depth)
gint *height)
{
if (!window)
window = _gdk_root;
@ -1848,8 +1847,6 @@ gdk_win32_window_get_geometry (GdkWindow *window,
*width = rect.right - rect.left;
if (height)
*height = rect.bottom - rect.top;
if (depth)
*depth = gdk_window_get_visual (window)->depth;
GDK_NOTE (MISC, g_print ("gdk_win32_window_get_geometry: %p: %ldx%ldx%d@%+ld%+ld\n",
GDK_WINDOW_HWND (window),

View File

@ -2739,8 +2739,7 @@ gdk_window_x11_get_geometry (GdkWindow *window,
gint *x,
gint *y,
gint *width,
gint *height,
gint *depth)
gint *height)
{
Window root;
gint tx;
@ -2764,8 +2763,6 @@ gdk_window_x11_get_geometry (GdkWindow *window,
*width = twidth;
if (height)
*height = theight;
if (depth)
*depth = tdepth;
}
}