1 /* GAIL - The GNOME Accessibility Implementation Library
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, see <http://www.gnu.org/licenses/>.
22 #include "gtkframeaccessible.h"
25 G_DEFINE_TYPE (GtkFrameAccessible, _gtk_frame_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE)
28 gtk_frame_accessible_initialize (AtkObject *accessible,
31 ATK_OBJECT_CLASS (_gtk_frame_accessible_parent_class)->initialize (accessible, data);
33 accessible->role = ATK_ROLE_PANEL;
37 gtk_frame_accessible_get_name (AtkObject *obj)
42 widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
46 name = ATK_OBJECT_CLASS (_gtk_frame_accessible_parent_class)->get_name (obj);
50 return gtk_frame_get_label (GTK_FRAME (widget));
54 _gtk_frame_accessible_class_init (GtkFrameAccessibleClass *klass)
56 AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
58 class->initialize = gtk_frame_accessible_initialize;
59 class->get_name = gtk_frame_accessible_get_name;
63 _gtk_frame_accessible_init (GtkFrameAccessible *frame)