1 /* GAIL - The GNOME Accessibility Implementation Library
2 * Copyright 2004 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/>.
21 #include "gtkscaleaccessible.h"
23 G_DEFINE_TYPE (GtkScaleAccessible, gtk_scale_accessible, GTK_TYPE_RANGE_ACCESSIBLE)
26 gtk_scale_accessible_get_description (AtkObject *object)
31 widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (object));
35 layout = gtk_scale_get_layout (GTK_SCALE (widget));
37 return pango_layout_get_text (layout);
39 return ATK_OBJECT_CLASS (gtk_scale_accessible_parent_class)->get_description (object);
43 gtk_scale_accessible_class_init (GtkScaleAccessibleClass *klass)
45 AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
47 class->get_description = gtk_scale_accessible_get_description;
51 gtk_scale_accessible_init (GtkScaleAccessible *scale)