diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-14 01:50:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-06-15 00:55:49 +0800 |
commit | fd8b55edaa88906b588aa07d9eadcacd34a7a774 (patch) | |
tree | 14fe95f503fefe738465ff4a734671afec0efb57 /libgnomecanvas/gnome-canvas-line.c | |
parent | e8a1662875e3e957d96d4f60cb8b5664ee4f74b3 (diff) | |
download | gsoc2013-evolution-fd8b55edaa88906b588aa07d9eadcacd34a7a774.tar.gz gsoc2013-evolution-fd8b55edaa88906b588aa07d9eadcacd34a7a774.tar.zst gsoc2013-evolution-fd8b55edaa88906b588aa07d9eadcacd34a7a774.zip |
Fix all remaining GTK3 issues.
Work around the issue of GnomeCanvasItem amending its own flags to
GtkObject::flags (which is sealed) by giving it its own flags field.
This breaks libgnomecanvas ABI and API, but I see no other way.
Diffstat (limited to 'libgnomecanvas/gnome-canvas-line.c')
-rw-r--r-- | libgnomecanvas/gnome-canvas-line.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libgnomecanvas/gnome-canvas-line.c b/libgnomecanvas/gnome-canvas-line.c index 48cafb71c7..fa7c74ccc1 100644 --- a/libgnomecanvas/gnome-canvas-line.c +++ b/libgnomecanvas/gnome-canvas-line.c @@ -1096,14 +1096,18 @@ gnome_canvas_line_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_pa static void gnome_canvas_line_realize (GnomeCanvasItem *item) { + GtkLayout *layout; GnomeCanvasLine *line; + GdkWindow *bin_window; line = GNOME_CANVAS_LINE (item); if (parent_class->realize) (* parent_class->realize) (item); - line->gc = gdk_gc_new (item->canvas->layout.bin_window); + layout = GTK_LAYOUT (item->canvas); + bin_window = gtk_layout_get_bin_window (layout); + line->gc = gdk_gc_new (bin_window); #if 0 (* GNOME_CANVAS_ITEM_CLASS (item->object.klass)->update) (item, NULL, NULL, 0); |