From 87e865a9473cb2c7360f9122706c414d69a044f9 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Sat, 6 Mar 2010 16:23:09 +0000 Subject: Don't poke around a GdkWindowObject directly but use gdk_window_get_parent --- capplet/settings/mail-decoration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capplet/settings/mail-decoration.c b/capplet/settings/mail-decoration.c index 689bb83285..9b8bc37886 100644 --- a/capplet/settings/mail-decoration.c +++ b/capplet/settings/mail-decoration.c @@ -91,7 +91,7 @@ md_translate_position (GdkWindow *w, double ex, double ey, int *x, int *y, GtkWi gdk_window_get_geometry (w, &cx, &cy, &cw, &ch, &cd); *x += cx; *y += cy; - w = (GdkWindow *)((GdkWindowObject *)w)->parent; + w = gdk_window_get_parent (w); } } -- cgit