[gtk+/rendering-cleanup: 12/41] x11: Remove screen member from GdkDrawableImplX11
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 12/41] x11: Remove screen member from GdkDrawableImplX11
- Date: Tue, 23 Nov 2010 00:22:35 +0000 (UTC)
commit bcd1a5e7710789a65aacaa6b3a4dce66042fb4d9
Author: Benjamin Otte <otte redhat com>
Date: Wed Oct 6 02:01:51 2010 +0200
x11: Remove screen member from GdkDrawableImplX11
gdk/x11/gdkdrawable-x11.h | 1 -
gdk/x11/gdkwindow-x11.c | 5 +----
2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/x11/gdkdrawable-x11.h b/gdk/x11/gdkdrawable-x11.h
index 284bba7..e4996a8 100644
--- a/gdk/x11/gdkdrawable-x11.h
+++ b/gdk/x11/gdkdrawable-x11.h
@@ -52,7 +52,6 @@ struct _GdkDrawableImplX11
GdkDrawable *wrapper;
Window xid;
- GdkScreen *screen;
cairo_surface_t *cairo_surface;
};
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 6c9ef1c..6303132 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -439,7 +439,6 @@ _gdk_windowing_window_init (GdkScreen * screen)
draw_impl = GDK_DRAWABLE_IMPL_X11 (private->impl);
- draw_impl->screen = screen;
draw_impl->xid = screen_x11->xroot_window;
draw_impl->wrapper = GDK_DRAWABLE (private);
@@ -686,7 +685,6 @@ _gdk_window_impl_new (GdkWindow *window,
draw_impl = GDK_DRAWABLE_IMPL_X11 (impl);
draw_impl->wrapper = GDK_DRAWABLE (window);
- draw_impl->screen = screen;
xdisplay = screen_x11->xdisplay;
xattributes_mask = 0;
@@ -898,12 +896,11 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
impl = GDK_WINDOW_IMPL_X11 (private->impl);
draw_impl = GDK_DRAWABLE_IMPL_X11 (private->impl);
draw_impl->wrapper = GDK_DRAWABLE (window);
- draw_impl->screen = screen;
private->parent = gdk_xid_table_lookup_for_display (display, parent);
if (!private->parent || GDK_WINDOW_TYPE (private->parent) == GDK_WINDOW_FOREIGN)
- private->parent = (GdkWindowObject *) gdk_screen_get_root_window (draw_impl->screen);
+ private->parent = (GdkWindowObject *) gdk_screen_get_root_window (screen);
private->parent->children = g_list_prepend (private->parent->children, window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]