Fix some return value warnings

This commit is contained in:
Alexander Larsson 2008-12-06 23:22:24 +01:00 committed by Alexander Larsson
parent ede9c2cf74
commit 533d3058b8

View File

@ -5978,13 +5978,13 @@ gdk_window_get_deskrelative_origin (GdkWindow *window,
gint tx = 0;
gint ty = 0;
g_return_if_fail (GDK_IS_WINDOW (window));
g_return_val_if_fail (GDK_IS_WINDOW (window), FALSE);
private = (GdkWindowObject *) window;
if (!GDK_WINDOW_DESTROYED (window))
{
GDK_WINDOW_IMPL_GET_IFACE (private->impl)->get_deskrelative_origin (window, &tx, &ty);
return_val = GDK_WINDOW_IMPL_GET_IFACE (private->impl)->get_deskrelative_origin (window, &tx, &ty);
if (x)
*x = tx + private->abs_x;