]> Pileus Git - ~andy/gtk/commit
Fix GtkSwitchAccessible type definition
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jun 2011 04:00:39 +0000 (00:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jul 2011 20:08:00 +0000 (16:08 -0400)
commit054057a640c701f0282c3744bcd99ae76ca8b79f
treefd15a00ca902b463a46165c2f91f3f8a518bc702
parent4dfb50073296d84b36eb8a0d9627539cdd5242a5
Fix GtkSwitchAccessible type definition

It turns out that ATK_DEFINE_TYPE_WITH_CODE() is broken; it
tells GType that the class and instance size for the accessible
type are the same as for its parent type. Which is not true
if your instance struct has members such as 'description' here.
This was causing hard-to-track-down memory corruption, since
description and the GtkAccessible private pointer were sharing
the same memory location.
gtk/gtkswitch.c