aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/addressbook/ea-addressbook-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-05-20 22:50:00 +0800
committerMilan Crha <mcrha@redhat.com>2009-05-20 22:50:00 +0800
commitf4cf9af33ccde3142a3011e8b2dbcfb4cbc9ae81 (patch)
tree1c0228db536f5fa0efc6e0f779bb86df610989d0 /a11y/addressbook/ea-addressbook-view.c
parent3acc45b10c9849aa5385a762b4d139472916dca1 (diff)
downloadgsoc2013-evolution-f4cf9af33ccde3142a3011e8b2dbcfb4cbc9ae81.tar
gsoc2013-evolution-f4cf9af33ccde3142a3011e8b2dbcfb4cbc9ae81.tar.gz
gsoc2013-evolution-f4cf9af33ccde3142a3011e8b2dbcfb4cbc9ae81.tar.bz2
gsoc2013-evolution-f4cf9af33ccde3142a3011e8b2dbcfb4cbc9ae81.tar.lz
gsoc2013-evolution-f4cf9af33ccde3142a3011e8b2dbcfb4cbc9ae81.tar.xz
gsoc2013-evolution-f4cf9af33ccde3142a3011e8b2dbcfb4cbc9ae81.tar.zst
gsoc2013-evolution-f4cf9af33ccde3142a3011e8b2dbcfb4cbc9ae81.zip
Use -no-undefined on Linux too
There still left two things opened, search for KILL-BONOBO to find them. One is in calendar's Makefile.am, one in composer.
Diffstat (limited to 'a11y/addressbook/ea-addressbook-view.c')
-rw-r--r--a11y/addressbook/ea-addressbook-view.c123
1 files changed, 0 insertions, 123 deletions
diff --git a/a11y/addressbook/ea-addressbook-view.c b/a11y/addressbook/ea-addressbook-view.c
deleted file mode 100644
index eff7eb4044..0000000000
--- a/a11y/addressbook/ea-addressbook-view.c
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) version 3.
- *
- * This program 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with the program; if not, see <http://www.gnu.org/licenses/>
- *
- *
- * Authors:
- * Leon Zhang <leon.zhang@sun.com>
- *
- * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
- *
- */
-
-#include <config.h>
-
-#include <glib/gi18n.h>
-#include "ea-addressbook-view.h"
-
-static G_CONST_RETURN gchar* ea_ab_view_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_ab_view_get_description (AtkObject *accessible);
-
-static void ea_ab_view_class_init (EAddressbookViewClass *class);
-
-static gpointer parent_class = NULL;
-
-GType
-ea_ab_view_get_type (void)
-{
- static GType type = 0;
- AtkObjectFactory *factory;
- GTypeQuery query;
- GType derived_atk_type;
-
- if (!type) {
- static GTypeInfo tinfo = {
- sizeof (EAddressbookViewClass),
- (GBaseInitFunc) NULL, /* base_init */
- (GBaseFinalizeFunc) NULL, /* base_finalize */
- (GClassInitFunc) ea_ab_view_class_init,
- (GClassFinalizeFunc) NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (EAddressbookView),
- 0, /* n_preallocs */
- (GInstanceInitFunc) NULL, /* instance init */
- NULL /* value table */
- };
-
- /*
- * Figure out the size of the class and instance
- * we are run-time deriving from (GailWidget, in this case) */
-
- factory = atk_registry_get_factory (atk_get_default_registry (),
- GTK_TYPE_EVENT_BOX);
- derived_atk_type = atk_object_factory_get_accessible_type (factory);
- g_type_query (derived_atk_type, &query);
-
- tinfo.class_size = query.class_size;
- tinfo.instance_size = query.instance_size;
-
- type = g_type_register_static (derived_atk_type,
- "EaABView", &tinfo, 0);
- }
-
- return type;
-}
-
-static void
-ea_ab_view_class_init (EAddressbookViewClass *class)
-{
- AtkObjectClass *atk_object_class;
-
- parent_class = g_type_class_peek_parent (class);
-
- atk_object_class = ATK_OBJECT_CLASS (class);
- atk_object_class->get_name = ea_ab_view_get_name;
- atk_object_class->get_description = ea_ab_view_get_description;
-}
-
-static G_CONST_RETURN gchar*
-ea_ab_view_get_name (AtkObject *accessible)
-{
- g_return_val_if_fail (EA_IS_AB_VIEW(accessible), NULL);
- if (accessible->name)
- return accessible->name;
-
- return _("evolution address book");
-}
-
-static G_CONST_RETURN gchar*
-ea_ab_view_get_description (AtkObject *accessible)
-{
- if (accessible->description)
- return accessible->description;
-
- return _("evolution address book");
-}
-
-AtkObject*
-ea_ab_view_new (GObject *obj)
-{
- GObject *object;
- AtkObject *accessible;
-
- g_return_val_if_fail(obj != NULL, NULL);
- g_return_val_if_fail (E_IS_ADDRESSBOOK_VIEW(obj), NULL);
-
- object = g_object_new (EA_TYPE_AB_VIEW, NULL);
-
- accessible = ATK_OBJECT (object);
- atk_object_initialize (accessible, obj);
- accessible->role = ATK_ROLE_CANVAS;
-
- return accessible;
-}