Commit d55073fd authored by Benjamin Otte's avatar Benjamin Otte

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

parent 645d0ac4
......@@ -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;
}
}
......
......@@ -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;
......
......@@ -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,
......
......@@ -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
......
......@@ -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),
......
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment