Remove the return value of GdkWindowImpl::get_root_coords

It's unused by callers, and the historical return values are
undocumented, so just remove it now.
This commit is contained in:
Jasper St. Pierre 2014-02-27 20:58:13 -05:00
parent 056ca21e2f
commit b922e0e213
7 changed files with 15 additions and 27 deletions

View File

@ -707,7 +707,7 @@ gdk_window_broadway_get_geometry (GdkWindow *window,
}
static gint
static void
gdk_window_broadway_get_root_coords (GdkWindow *window,
gint x,
gint y,
@ -722,8 +722,6 @@ gdk_window_broadway_get_root_coords (GdkWindow *window,
*root_x = x + impl->wrapper->x;
if (root_y)
*root_y = y + impl->wrapper->y;
return 1;
}
static void

View File

@ -243,7 +243,7 @@ to_embedder (GdkWindow *window,
NULL);
}
static gint
static void
gdk_offscreen_window_get_root_coords (GdkWindow *window,
gint x,
gint y,
@ -275,8 +275,6 @@ gdk_offscreen_window_get_root_coords (GdkWindow *window,
*root_x = tmpx;
if (root_y)
*root_y = tmpy;
return TRUE;
}
static gboolean

View File

@ -96,7 +96,7 @@ struct _GdkWindowImplClass
gint *y,
gint *width,
gint *height);
gint (* get_root_coords) (GdkWindow *window,
void (* get_root_coords) (GdkWindow *window,
gint x,
gint y,
gint *root_x,

View File

@ -1730,7 +1730,7 @@ gdk_window_quartz_get_geometry (GdkWindow *window,
}
}
static gint
static void
gdk_window_quartz_get_root_coords (GdkWindow *window,
gint x,
gint y,
@ -1749,7 +1749,7 @@ gdk_window_quartz_get_root_coords (GdkWindow *window,
if (root_y)
*root_y = 0;
return 0;
return;
}
if (window == _gdk_root)
@ -1759,7 +1759,7 @@ gdk_window_quartz_get_root_coords (GdkWindow *window,
if (root_y)
*root_y = y;
return 1;
return;
}
toplevel = gdk_window_get_toplevel (window);
@ -1789,8 +1789,6 @@ gdk_window_quartz_get_root_coords (GdkWindow *window,
*root_x = tmp_x;
if (root_y)
*root_y = tmp_y;
return TRUE;
}
static void

View File

@ -1390,7 +1390,7 @@ gdk_wayland_window_offset (GdkWindow *window,
*y_out = y_offset;
}
static gint
static void
gdk_window_wayland_get_root_coords (GdkWindow *window,
gint x,
gint y,
@ -1406,8 +1406,6 @@ gdk_window_wayland_get_root_coords (GdkWindow *window,
if (root_y)
*root_y = y_offset + y;
return 1;
}
static gboolean

View File

@ -2020,7 +2020,7 @@ gdk_win32_window_get_geometry (GdkWindow *window,
}
}
static gint
static void
gdk_win32_window_get_root_coords (GdkWindow *window,
gint x,
gint y,
@ -2046,7 +2046,6 @@ gdk_win32_window_get_root_coords (GdkWindow *window,
GDK_WINDOW_HWND (window),
x, y,
tx + _gdk_offset_x, ty + _gdk_offset_y));
return 1;
}
static void

View File

@ -3089,7 +3089,7 @@ gdk_window_x11_get_geometry (GdkWindow *window,
}
}
static gint
static void
gdk_window_x11_get_root_coords (GdkWindow *window,
gint x,
gint y,
@ -3097,23 +3097,20 @@ gdk_window_x11_get_root_coords (GdkWindow *window,
gint *root_y)
{
GdkWindowImplX11 *impl = GDK_WINDOW_IMPL_X11 (window->impl);
gint return_val;
Window child;
gint tx;
gint ty;
return_val = XTranslateCoordinates (GDK_WINDOW_XDISPLAY (window),
GDK_WINDOW_XID (window),
GDK_WINDOW_XROOTWIN (window),
x * impl->window_scale, y * impl->window_scale, &tx, &ty,
&child);
XTranslateCoordinates (GDK_WINDOW_XDISPLAY (window),
GDK_WINDOW_XID (window),
GDK_WINDOW_XROOTWIN (window),
x * impl->window_scale, y * impl->window_scale, &tx, &ty,
&child);
if (root_x)
*root_x = tx / impl->window_scale;
if (root_y)
*root_y = ty / impl->window_scale;
return return_val;
}
static void