/* * * This program 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) version 3. * * This program 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 the program; if not, see * * * Authors: * Bolian Yin * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * */ /* Evolution Accessibility */ #ifndef _EA_FACTORY_H__ #define _EA_FACTORY_H__ #include #include #define EA_FACTORY_PARTA_GOBJECT(type, type_as_function, opt_create_accessible) \ static AtkObject* \ type_as_function ## _factory_create_accessible (GObject *obj) \ { \ AtkObject *accessible; \ g_return_val_if_fail (G_IS_OBJECT (obj), NULL); \ accessible = opt_create_accessible (G_OBJECT (obj)); \ return accessible; \ } #define EA_FACTORY_PARTA(type, type_as_function, opt_create_accessible) \ static AtkObject* \ type_as_function ## _factory_create_accessible (GObject *obj) \ { \ GtkWidget *widget; \ AtkObject *accessible; \ \ g_return_val_if_fail (GTK_IS_WIDGET (obj), NULL); \ \ widget = GTK_WIDGET (obj); \ \ accessible = opt_create_accessible (widget); \ return accessible; \ } #define EA_FACTORY_PARTB(type, type_as_function, opt_create_accessible) \ \ static GType \ type_as_function ## _factory_get_accessible_type (void) \ { \ return type; \ } \ \ \ static void \ type_as_function ## _factory_class_init (AtkObjectFactoryClass *klass) \ { \ klass->create_accessible = type_as_function ## _factory_create_accessible; \ klass->get_accessible_type = type_as_function ## _factory_get_accessible_type;\ } \ \ static GType \ type_as_function ## _factory_get_type (void) \ { \ static GType t = 0; \ \ if (!t) \ { \ gchar *name; \ static const GTypeInfo tinfo = \ { \ sizeof (AtkObjectFactoryClass), \ NULL, NULL, (GClassInitFunc) type_as_function ## _factory_class_init, \ NULL, NULL, sizeof (AtkObjectFactory), 0, NULL, NULL \ }; \ \ name = g_strconcat (g_type_name (type), "Factory", NULL); \ t = g_type_register_static ( \ ATK_TYPE_OBJECT_FACTORY, name, &tinfo, 0); \ g_free (name); \ } \ \ return t; \ } #define EA_FACTORY(type, type_as_function, opt_create_accessible) \ EA_FACTORY_PARTA (type, type_as_function, opt_create_accessible) \ EA_FACTORY_PARTB (type, type_as_function, opt_create_accessible) #define EA_FACTORY_GOBJECT(type, type_as_function, opt_create_accessible) \ EA_FACTORY_PARTA_GOBJECT (type, type_as_function, opt_create_accessible) \ EA_FACTORY_PARTB (type, type_as_function, opt_create_accessible) #define EA_SET_FACTORY(obj_type, type_as_function) \ { \ if (atk_get_root ()) { \ atk_registry_set_factory_type (atk_get_default_registry (), \ obj_type, \ type_as_function ## _factory_get_type ());\ } \ } #endif /* _EA_FACTORY_H__ */ ependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2 gnome-3.22 gnome-3.24 gnome-3.26 gnome-3.28 gnome-3.32 gnome-3.36 gstreamer gstreamer-1.16 gstreamer0.10-removal main master mate-1.16 mate-1.18 mate-1.20 mate-1.22 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome) aboutsummaryrefslogtreecommitdiffstats log msg author committer range path: root/emulators/vbaCommit message (Expand)AuthorAgeFilesLines * - update png to 1.5.10Dirk Meyer2012-06-012-3/+17 * - Update devel/sdl12 to 1.2.15Marcus von Appen2012-02-181-1/+1 * Mark broken on powerpc as well as sparc64. (In fact, on all the tier-2s.)Mark Linimon2011-11-101-5/+1 * Remove more tags from pkg-descr files fo the form:Doug Barton2011-10-241-2/+0 * = Drop MD5 supportMartin Wilke2011-07-031-1/+0 * - update to 1.4.1Dirk Meyer2010-03-281-2/+2 * - Switch SourceForge ports to the new File Release System: categories startin...Dmitry Marakasov2009-08-221-2/+1 * - Remove USE_GCC where it can be satisfied with base compiler on followingPav Lucistnik2008-07-251-1/+0 * - Remove unneeded dependency from gtk12/gtk20 [1]Martin Wilke2008-04-201-2/+2 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGMartin Wilke2008-03-221-2/+1 * - Chase devel/sdl12 shlib version bumpMartin Wilke2008-03-131-1/+1 * Mark as broken on sparc64: internal gcc error.Mark Linimon2008-02-011-0/+4 * - UnbreakMartin Wilke2007-10-174-4/+45 * Mark as broken with gcc4.2. While here, remove antique compatibilty cruft.Mark Linimon2007-10-021-6/+3 * - Use correct argument to disable profilingRong-En Fan2007-06-221-1/+1 * - Welcome X.org 7.2 \o/.Florent Thoumie2007-05-201-1/+1 * - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directoryStanislav Sedov2006-09-201-1/+1 * Now builds on sparc64Kris Kennaway2006-09-181-1/+1 * SHA256ifyEdwin Groothuis2006-01-221-0/+1 * Bump PORTREVISION to chase the glib20 shared library update.Joe Marcus Clarke2005-11-051-1/+1 * Add support to GTK2Marcus Alves Grando2005-10-148-46/+76 * BROKEN on ia64 and sparc64: Runaway cc1plus processKris Kennaway2005-07-211-0/+4 * Give hint to possibly necessary workaround in pkg-messageVolker Stolz2004-10-271-0/+4 * - Fix build on 4.xPav Lucistnik2004-08-214-9/+34 * BROKEN on 4.x: Does not compileKris Kennaway2004-08-161-0/+4 * Reset maintainer:Kris Kennaway2004-08-161-1/+1 * Update to 1.7.2Kirill Ponomarev2004-07-177-134/+12 * Workaround broken .if (${OSVERSION}...), cf.Volker Stolz2004-05-181-1/+1 * - Remove double SIZE entry of distinfo (make fetch is acting weird if you don't)Edwin Groothuis2004-05-152-2/+1 * maintainer update of emulators/vbaEdwin Groothuis2004-05-144-12/+13 * maintainer update of emulators/vbaEdwin Groothuis2004-05-143-6/+7 * SIZEify (maintainer timeout)Trevor Johnson2004-03-311-0/+1 * Chase library bump of libSDL-1.1 for all ports which were dependingEdwin Groothuis2004-03-161-0/+1 * Properly use SDL everywhere:Edwin Groothuis2004-03-081-1/+1 * This was missed in the last commit.Mark Linimon2004-02-181-1/+1 * Update to version 1.7.1: update battery file more often; many bugfixes.Mark Linimon2004-02-176-40/+56 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.Joe Marcus Clarke2004-02-041-0/+1 * - Update to 1.7Pav Lucistnik2004-01-225-67/+95 * - Nuke useless empty filePav Lucistnik2004-01-221-0/+0