aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/addressbook/ea-minicard-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-11-15 06:04:21 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-11-15 06:04:21 +0800
commit9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch)
tree2e1e96f33404781354c422a7e9beaf458ebeb655 /a11y/addressbook/ea-minicard-view.c
parent7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff)
downloadgsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.bz2
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.lz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.xz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
Diffstat (limited to 'a11y/addressbook/ea-minicard-view.c')
-rw-r--r--a11y/addressbook/ea-minicard-view.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/a11y/addressbook/ea-minicard-view.c b/a11y/addressbook/ea-minicard-view.c
index c6b7d4b029..52f923eb24 100644
--- a/a11y/addressbook/ea-minicard-view.c
+++ b/a11y/addressbook/ea-minicard-view.c
@@ -1,8 +1,8 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
+/*
* ea-minicard-view.c
* Copyright (C) 2000 Ximian, Inc.
- * Author: Leon Zhang < leon.zhang@sun.com>
+ * Author: Leon Zhang < leon.zhang@sun.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
@@ -90,13 +90,13 @@ ea_minicard_view_get_type (void)
(GInterfaceFinalizeFunc) NULL,
NULL
};
-
+
static const GInterfaceInfo atk_action_info = {
(GInterfaceInitFunc) atk_action_interface_init,
(GInterfaceFinalizeFunc) NULL,
NULL
};
-
+
/*
* Figure out the size of the class and instance
* we are run-time deriving from (GailWidget, in this case) */
@@ -115,7 +115,7 @@ ea_minicard_view_get_type (void)
&atk_selection_info);
g_type_add_interface_static (type, ATK_TYPE_ACTION,
&atk_action_info);
-
+
}
return type;
@@ -150,7 +150,7 @@ ea_minicard_view_get_name (AtkObject *accessible)
if (!reflow)
return NULL;
-
+
/* Get the current name of minicard view*/
card_view = E_MINICARD_VIEW (reflow);
g_object_get (card_view->adapter, "book", &book, NULL);
@@ -179,7 +179,7 @@ ea_minicard_view_get_description (AtkObject *accessible)
return _("evolution addressbook");
}
-AtkObject*
+AtkObject*
ea_minicard_view_new (GObject *obj)
{
GObject *object;
@@ -197,18 +197,18 @@ static gint
ea_minicard_view_get_n_children (AtkObject *accessible)
{
EReflow *reflow;
-
+
gint child_num = 0;
-
+
g_return_val_if_fail (EA_IS_MINICARD_VIEW (accessible), -1);
-
+
reflow = E_REFLOW (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE(accessible)));
if (!reflow)
return -1;
-
+
child_num = reflow->count;
-
+
return child_num;
}
@@ -216,7 +216,7 @@ static AtkStateSet *ea_minicard_view_ref_state_set (AtkObject *obj)
{
AtkStateSet *state_set = NULL;
GObject *gobj = NULL;
-
+
state_set = ATK_OBJECT_CLASS (parent_class)->ref_state_set (obj);
if( !state_set )
state_set = atk_state_set_new ();
@@ -224,7 +224,7 @@ static AtkStateSet *ea_minicard_view_ref_state_set (AtkObject *obj)
gobj = atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (obj));
if( !gobj )
return state_set;
-
+
atk_state_set_add_state (state_set, ATK_STATE_ENABLED);
atk_state_set_add_state (state_set, ATK_STATE_SENSITIVE);
atk_state_set_add_state (state_set, ATK_STATE_SHOWING);
@@ -241,11 +241,11 @@ ea_minicard_view_ref_child (AtkObject *accessible, gint index)
EMinicard *card = NULL;
g_return_val_if_fail (EA_IS_MINICARD_VIEW (accessible), NULL);
-
+
child_num = atk_object_get_n_accessible_children (accessible);
if (child_num <= 0 || index < 0 || index >= child_num)
return NULL;
-
+
reflow = E_REFLOW (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (accessible)));
if (!reflow)
return NULL;
@@ -282,13 +282,13 @@ selection_interface_add_selection (AtkSelection *selection, gint i)
{
AtkGObjectAccessible *atk_gobj= NULL;
EReflow *reflow = NULL;
-
+
atk_gobj = ATK_GOBJECT_ACCESSIBLE (selection);
reflow = E_REFLOW (atk_gobject_accessible_get_object (atk_gobj));
-
+
if (!reflow)
return FALSE;
-
+
selection_interface_clear_selection (selection);
e_selection_model_select_single_row (reflow->selection, i);
@@ -306,9 +306,9 @@ selection_interface_clear_selection (AtkSelection *selection)
if( !reflow )
return FALSE;
-
+
e_selection_model_clear (reflow->selection);
-
+
return TRUE;
}
@@ -329,7 +329,7 @@ selection_interface_get_selection_count (AtkSelection *selection)
if (!reflow )
return FALSE;
-
+
return e_selection_model_selected_count (reflow->selection);
}
@@ -417,4 +417,4 @@ atk_action_interface_get_name (AtkAction *iface, gint i)
return action_name[i];
}
-
+