~3v1n0/unity/bfb-quicklist-does-not-close-dash

785.9.3 by Rodrigo Moya
Add basic Util/Root ATK objects for the panel
1
/*
2
 * Copyright (C) 2011 Canonical Ltd
3
 *
4
 * This program is free software: you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License version 3 as
6
 * published by the Free Software Foundation.
7
 *
8
 * This program is distributed in the hope that it will be useful,
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 * GNU General Public License for more details.
12
 *
13
 * You should have received a copy of the GNU General Public License
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 *
16
 * Authored by: Rodrigo Moya <rodrigo.moya@canonical.com>
17
 */
18
19
#include "panel-root-accessible.h"
20
#include "panel-util-accessible.h"
21
22
G_DEFINE_TYPE(PanelUtilAccessible, panel_util_accessible, ATK_TYPE_UTIL)
23
24
/* AtkUtil methods */
812.1.13 by Rodrigo Moya
Use ATK_OBJECT for castings
25
static AtkObject *panel_util_accessible_get_root (void);
785.9.3 by Rodrigo Moya
Add basic Util/Root ATK objects for the panel
26
27
static AtkObject *root = NULL;
28
29
/* GObject methods implementation */
30
31
static void
32
panel_util_accessible_class_init (PanelUtilAccessibleClass *klass)
33
{
785.9.12 by Rodrigo Moya
Several fixes
34
  AtkUtilClass *atk_class;
35
36
  g_debug ("Initializing PanelUtilAccessible class");
37
38
  /* AtkUtil */
39
  atk_class = g_type_class_peek (ATK_TYPE_UTIL);
40
  atk_class->get_root = panel_util_accessible_get_root;
785.9.3 by Rodrigo Moya
Add basic Util/Root ATK objects for the panel
41
}
42
43
static void
44
panel_util_accessible_init (PanelUtilAccessible *panel_util)
45
{
46
}
47
48
/* AtkUtil methods implementation */
49
50
static AtkObject *
51
panel_util_accessible_get_root (void)
52
{
785.9.12 by Rodrigo Moya
Several fixes
53
  if (!root)
54
    root = panel_root_accessible_new ();
55
56
  return root;
785.9.3 by Rodrigo Moya
Add basic Util/Root ATK objects for the panel
57
}