[evolution] Don't poke around a GdkWindowObject directly but use gdk_window_get_parent



commit 87e865a9473cb2c7360f9122706c414d69a044f9
Author: Ross Burton <ross linux intel com>
Date:   Sat Mar 6 16:23:09 2010 +0000

    Don't poke around a GdkWindowObject directly but use gdk_window_get_parent

 capplet/settings/mail-decoration.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/capplet/settings/mail-decoration.c b/capplet/settings/mail-decoration.c
index 689bb83..9b8bc37 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);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]