diff options
Diffstat (limited to 'atk')
-rw-r--r-- | atk/atk-autocleanups.h | 54 | ||||
-rw-r--r-- | atk/atk.h | 2 | ||||
-rw-r--r-- | atk/atkstate.h | 2 | ||||
-rw-r--r-- | atk/meson.build | 3 |
4 files changed, 60 insertions, 1 deletions
diff --git a/atk/atk-autocleanups.h b/atk/atk-autocleanups.h new file mode 100644 index 0000000..f928f70 --- /dev/null +++ b/atk/atk-autocleanups.h @@ -0,0 +1,54 @@ +/* ATK - Accessibility Toolkit + * Copyright 2020 GNOME Foundation + * + * 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, see <http://www.gnu.org/licenses/>. + */ + +#if !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION) +#error "Only <atk/atk.h> can be included directly." +#endif + +#ifndef __GI_SCANNER__ + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkAction, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkComponent, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkDocument, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkEditableText, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkGObjectAccessible, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkHyperlink, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkHyperlinkImpl, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkHypertext, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkImage, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkImplementor, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkMisc, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkNoOpObjectFactory, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkNoOpObject, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkObjectFactory, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkObject, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkPlug, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkRegistry, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkRelationSet, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkRelation, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkSelection, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkSocket, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkStateSet, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkStreamableContent, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkTableCell, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkTable, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkText, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkUtil, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkValue, g_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (AtkWindow, g_object_unref) + +#endif /* __GI_SCANNER__ */ @@ -56,6 +56,8 @@ #include <atk/atkversion.h> #include <atk/atkwindow.h> +#include <atk/atk-autocleanups.h> + #undef __ATK_H_INSIDE__ #endif /* __ATK_H__ */ diff --git a/atk/atkstate.h b/atk/atkstate.h index b1094eb..82be9c7 100644 --- a/atk/atkstate.h +++ b/atk/atkstate.h @@ -141,6 +141,7 @@ G_BEGIN_DECLS * widget does not include modification by the user, as is the case with * labels and containers, ATK_STATE_READ_ONLY should not be applied. See also * ATK_STATE_EDITABLE. @Since: ATK-2-16 + *@ATK_STATE_COLLAPSED: Indicates this object is collapsed. @Since: ATK-2.38 *@ATK_STATE_LAST_DEFINED: Not a valid state, used for finding end of enumeration * *The possible types of states of an object @@ -190,6 +191,7 @@ typedef enum ATK_STATE_HAS_POPUP, ATK_STATE_HAS_TOOLTIP, ATK_STATE_READ_ONLY, + ATK_STATE_COLLAPSED, ATK_STATE_LAST_DEFINED } AtkStateType; diff --git a/atk/meson.build b/atk/meson.build index 79f37f6..d19bbba 100644 --- a/atk/meson.build +++ b/atk/meson.build @@ -65,6 +65,7 @@ atk_headers = [ 'atkutil.h', 'atkvalue.h', 'atkwindow.h', + 'atk-autocleanups.h', ] install_headers(atk_headers + ['atk.h'], subdir: atk_api_path) @@ -163,5 +164,5 @@ pkgconfig.generate(libatk, description: 'Accessibility Toolkit', subdirs: atk_api_name, filebase: 'atk', - requires: glib_dep, + libraries: glib_dep, ) |