~ubuntu-branches/ubuntu/precise/atkmm1.6/precise

« back to all changes in this revision

Viewing changes to codegen/extradefs/generate_extra_defs_atk.cc

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2010-11-02 20:35:53 UTC
  • Revision ID: james.westby@ubuntu.com-20101102203553-syno2w6yedmcdgk8
Tags: upstream-2.22.1
ImportĀ upstreamĀ versionĀ 2.22.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
31
int main(int, char**)
 
32
{
 
33
  g_type_init();
 
34
  void *const g_class_atk_no_op_object = g_type_class_ref(ATK_TYPE_NO_OP_OBJECT);
 
35
 
 
36
  std::cout << get_defs(ATK_TYPE_OBJECT)
 
37
            << get_defs(ATK_TYPE_COMPONENT)
 
38
            << get_defs(ATK_TYPE_ACTION)
 
39
            << get_defs(ATK_TYPE_EDITABLE_TEXT)
 
40
            << get_defs(ATK_TYPE_HYPERLINK)
 
41
            << get_defs(ATK_TYPE_HYPERTEXT)
 
42
            << get_defs(ATK_TYPE_IMAGE)
 
43
            << get_defs(ATK_TYPE_SELECTION)
 
44
            << get_defs(ATK_TYPE_TABLE)
 
45
            << get_defs(ATK_TYPE_TEXT)
 
46
            << get_defs(ATK_TYPE_VALUE)
 
47
            << get_defs(ATK_TYPE_REGISTRY)
 
48
            << get_defs(ATK_TYPE_RELATION)
 
49
            << get_defs(ATK_TYPE_RELATION_SET)
 
50
            << get_defs(ATK_TYPE_STATE_SET);
 
51
 
 
52
  g_type_class_unref(g_class_atk_no_op_object);
 
53
  return 0;
 
54
}