1 /* GTK - The GIMP Toolkit
2 * Copyright 2001 Sun Microsystems Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
23 #include "gtkwidget.h"
25 #include "gtkaccessible.h"
28 static void gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible);
30 G_DEFINE_TYPE (GtkAccessible, gtk_accessible, ATK_TYPE_OBJECT)
33 gtk_accessible_init (GtkAccessible *object)
38 gtk_accessible_class_init (GtkAccessibleClass *klass)
40 klass->connect_widget_destroyed = gtk_accessible_real_connect_widget_destroyed;
44 * gtk_accessible_connect_widget_destroyed
45 * @accessible: a #GtkAccessible
47 * This function specifies the callback function to be called when the widget
48 * corresponding to a GtkAccessible is destroyed.
51 gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible)
53 GtkAccessibleClass *class;
55 g_return_if_fail (GTK_IS_ACCESSIBLE (accessible));
57 class = GTK_ACCESSIBLE_GET_CLASS (accessible);
59 if (class->connect_widget_destroyed)
60 class->connect_widget_destroyed (accessible);
64 gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible)
66 if (accessible->widget)
68 g_signal_connect (accessible->widget,
70 G_CALLBACK (gtk_widget_destroyed),
75 #define __GTK_ACCESSIBLE_C__
76 #include "gtkaliasdef.c"