Re: ATK in Gnome CVS
- From: "Padraig O'Briain" <Padraig Obriain Sun COM>
- To: Gnome-accessibility-list gnome org
- Cc: gnome-access eng sun com
- Subject: Re: ATK in Gnome CVS
- Date: Thu, 26 Apr 2001 15:57:09 +0100 (BST)
This is my fault!
In addition to the gtk+.patch file which Bill provided you will also need these
two new source files.
Padraig
> Delivered-To: gnome-accessibility-list gnome org
> X-Accept-Language: en
> MIME-Version: 1.0
> To: Gnome-accessibility-list gnome org
> Cc: gnome-access eng sun com
> Subject: ATK in Gnome CVS
> X-BeenThere: gnome-accessibility-list gnome org
> X-Loop: gnome-accessibility-list gnome org
> X-Mailman-Version: 2.0beta5
> List-Id: GNOME accessibility development <gnome-accessibility-list.gnome.org>
>
> Hi folks:
>
> I have added the new module "atk" to Gnome CVS. Of course I have not
> applied the GTK+ patch that hooks into it yet...
>
> I attach the patch in case someone wants to have a go right away.
>
> Be advised that though we hope this version of ATK is "nearly frozen",
> we are still incorporating/discussing some changes proposed by Owen
> and issues that we have recently uncovered while implementing this API
> on behalf of the GTK+ widgets (in another, optional module called GAEL
> which we will be putting in community CVS shortly).
>
> Best regards,
>
> Bill
>
> --------------
> Bill Haneman
> Gnome Accessibility / Batik SVG Toolkit
> Sun Microsystems Ireland
/* GTK - The GIMP Toolkit
* Copyright 2001 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtkaccessible.h>
static void gtk_accessible_class_init (GtkAccessibleClass *klass);
static GtkAccessibleClass *parent_class = NULL;
GtkType
gtk_accessible_get_type (void)
{
static GtkType accessible_type = 0;
if (!accessible_type)
{
static const GTypeInfo accessible_info =
{
sizeof (GtkAccessibleClass),
NULL, /* base_init */
NULL, /* base_finalize */
(GClassInitFunc) gtk_accessible_class_init,
NULL, /* class_finalize */
NULL, /* class_data */
sizeof (GtkAccessible),
16, /* n_preallocs */
(GInstanceInitFunc) NULL,
};
accessible_type = g_type_register_static (ATK_TYPE_OBJECT, "GtkAccessible", &accessible_info, 0);
}
return accessible_type;
}
static void
gtk_accessible_class_init (GtkAccessibleClass *klass)
{
parent_class = g_type_class_ref (ATK_TYPE_OBJECT);
}
/* GTK - The GIMP Toolkit
* Copyright 2001 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GTK_ACCESSIBLE_H__
#define __GTK_ACCESSIBLE_H__
#include <atk/atk.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define GTK_TYPE_ACCESSIBLE (gtk_accessible_get_type ())
#define GTK_ACCESSIBLE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ACCESSIBLE, GtkAccessible))
#define GTK_ACCESSIBLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCESSIBLE, GtkAccessibleClass))
#define GTK_IS_ACCESSIBLE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ACCESSIBLE))
#define GTK_IS_ACCESSIBLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCESSIBLE))
#define GTK_ACCESSIBLE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_ACCESSIBLE, GtkAccessibleClass))
typedef struct _GtkAccessible GtkAccessible;
typedef struct _GtkAccessibleClass GtkAccessibleClass;
/**
* This object is a thin wrapper, in the GTK+ namespace, for AtkObject
*/
struct _GtkAccessible
{
AtkObject parent;
/*
* The GtkWidget whose properties and features are exported via this
* accessible instance.
*/
GtkWidget *widget;
};
GtkType gtk_accessible_get_type (void);
struct _GtkAccessibleClass
{
AtkObjectClass parent_class;
};
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GTK_ACCESSIBLE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]