Back to index

unity  6.0.0
panel-util-accessible.c
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 Canonical Ltd
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Authored by: Rodrigo Moya <rodrigo.moya@canonical.com>
00017  */
00018 
00019 #include "panel-root-accessible.h"
00020 #include "panel-util-accessible.h"
00021 
00022 G_DEFINE_TYPE(PanelUtilAccessible, panel_util_accessible, ATK_TYPE_UTIL)
00023 
00024 /* AtkUtil methods */
00025 static AtkObject *panel_util_accessible_get_root (void);
00026 
00027 static AtkObject *root = NULL;
00028 
00029 /* GObject methods implementation */
00030 
00031 static void
00032 panel_util_accessible_class_init (PanelUtilAccessibleClass *klass)
00033 {
00034   AtkUtilClass *atk_class;
00035 
00036   g_debug ("Initializing PanelUtilAccessible class");
00037 
00038   /* AtkUtil */
00039   atk_class = g_type_class_peek (ATK_TYPE_UTIL);
00040   atk_class->get_root = panel_util_accessible_get_root;
00041 }
00042 
00043 static void
00044 panel_util_accessible_init (PanelUtilAccessible *panel_util)
00045 {
00046 }
00047 
00048 /* AtkUtil methods implementation */
00049 
00050 static AtkObject *
00051 panel_util_accessible_get_root (void)
00052 {
00053   if (!root)
00054     root = panel_root_accessible_new ();
00055 
00056   return root;
00057 }