1 /* Copyright (c) 2010  Openismus GmbH  <http://www.openismus.com/>
2  *
3  * This file is part of atkmm.
4  *
5  * atkmm is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published
7  * by the Free Software Foundation, either version 2.1 of the License,
8  * or (at your option) any later version.
9  *
10  * atkmm is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifdef HAVE_CONFIG_H
20 # include <build/config.h>
21 #endif
22 // We always need to generate the .defs for all types because the code
23 // using deprecated API is generated unconditionally and only disabled
24 // at compile time.
25 #undef ATK_DISABLE_DEPRECATED
26 
27 #include <glibmm_generate_extra_defs/generate_extra_defs.h>
28 #include <atk/atk.h>
29 #include <iostream>
30 
main(int,char **)31 int main(int, char**)
32 {
33   // g_type_init() is deprecated as of glib-2.36.
34   // g_type_init();
35 
36   void *const g_class_atk_no_op_object = g_type_class_ref(ATK_TYPE_NO_OP_OBJECT);
37 
38 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
39 
40   std::cout << get_defs(ATK_TYPE_OBJECT)
41             << get_defs(ATK_TYPE_COMPONENT)
42             << get_defs(ATK_TYPE_ACTION)
43             << get_defs(ATK_TYPE_EDITABLE_TEXT)
44             << get_defs(ATK_TYPE_HYPERLINK)
45             << get_defs(ATK_TYPE_HYPERLINK_IMPL)
46             << get_defs(ATK_TYPE_HYPERTEXT)
47             << get_defs(ATK_TYPE_IMAGE)
48             << get_defs(ATK_TYPE_MISC)
49             << get_defs(ATK_TYPE_PLUG)
50             << get_defs(ATK_TYPE_SELECTION)
51             << get_defs(ATK_TYPE_SOCKET)
52             << get_defs(ATK_TYPE_TABLE)
53             << get_defs(ATK_TYPE_TEXT)
54             << get_defs(ATK_TYPE_VALUE)
55             << get_defs(ATK_TYPE_WINDOW)
56             << get_defs(ATK_TYPE_REGISTRY)
57             << get_defs(ATK_TYPE_RELATION)
58             << get_defs(ATK_TYPE_RELATION_SET)
59             << get_defs(ATK_TYPE_STATE_SET)
60             ;
61 
62 G_GNUC_END_IGNORE_DEPRECATIONS
63 
64   g_type_class_unref(g_class_atk_no_op_object);
65   return 0;
66 }
67