diff options
Diffstat (limited to 'a11y/calendar/ea-week-view-main-item.c')
-rw-r--r-- | a11y/calendar/ea-week-view-main-item.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/a11y/calendar/ea-week-view-main-item.c b/a11y/calendar/ea-week-view-main-item.c index 17220fd185..01c6f0236e 100644 --- a/a11y/calendar/ea-week-view-main-item.c +++ b/a11y/calendar/ea-week-view-main-item.c @@ -64,7 +64,7 @@ static gint table_interface_get_column_at_index (AtkTable *table, static gint table_interface_get_row_at_index (AtkTable *table, gint index); static AtkObject* table_interface_ref_at (AtkTable *table, - gint row, + gint row, gint column); static gint table_interface_get_n_rows (AtkTable *table); static gint table_interface_get_n_columns (AtkTable *table); @@ -183,7 +183,7 @@ ea_week_view_main_item_get_type (void) (GInterfaceFinalizeFunc) NULL, NULL }; - + /* * Figure out the size of the class and instance @@ -230,7 +230,7 @@ ea_week_view_main_item_class_init (EaWeekViewMainItemClass *klass) class->get_index_in_parent = ea_week_view_main_item_get_index_in_parent; } -AtkObject* +AtkObject* ea_week_view_main_item_new (GObject *obj) { AtkObject *accessible; @@ -318,10 +318,10 @@ ea_week_view_main_item_get_n_children (AtkObject *accessible) main_item = E_WEEK_VIEW_MAIN_ITEM (g_obj); week_view = main_item->week_view; - + if (week_view->multi_week_view) return 7 * week_view->weeks_shown; - else + else return 7; } @@ -593,7 +593,7 @@ ea_week_view_main_item_destory_cell_data (EaWeekViewMainItem *ea_main_item) /* Atk Component Interface */ -static void +static void atk_component_interface_init (AtkComponentIface *iface) { g_return_if_fail (iface != NULL); @@ -601,7 +601,7 @@ atk_component_interface_init (AtkComponentIface *iface) iface->get_extents = component_interface_get_extents; } -static void +static void component_interface_get_extents (AtkComponent *component, gint *x, gint *y, gint *width, gint *height, AtkCoordType coord_type) @@ -629,7 +629,7 @@ component_interface_get_extents (AtkComponent *component, /* atk table interface */ -static void +static void atk_table_interface_init (AtkTableIface *iface) { g_return_if_fail (iface != NULL); @@ -662,9 +662,9 @@ atk_table_interface_init (AtkTableIface *iface) iface->get_column_description = table_interface_get_column_description; } -static AtkObject* +static AtkObject* table_interface_ref_at (AtkTable *table, - gint row, + gint row, gint column) { gint index; @@ -675,7 +675,7 @@ table_interface_ref_at (AtkTable *table, return ea_week_view_main_item_ref_child (ATK_OBJECT (ea_main_item), index); } -static gint +static gint table_interface_get_n_rows (AtkTable *table) { AtkGObjectAccessible *atk_gobj; @@ -695,7 +695,7 @@ table_interface_get_n_rows (AtkTable *table) return week_view->weeks_shown; } -static gint +static gint table_interface_get_n_columns (AtkTable *table) { AtkGObjectAccessible *atk_gobj; @@ -757,7 +757,7 @@ table_interface_get_column_extent_at (AtkTable *table, return width; } -static gint +static gint table_interface_get_row_extent_at (AtkTable *table, gint row, gint column) @@ -778,7 +778,7 @@ table_interface_get_row_extent_at (AtkTable *table, return height; } -static gboolean +static gboolean table_interface_is_row_selected (AtkTable *table, gint row) { @@ -808,15 +808,15 @@ table_interface_is_row_selected (AtkTable *table, return TRUE; } -static gboolean -table_interface_is_selected (AtkTable *table, - gint row, +static gboolean +table_interface_is_selected (AtkTable *table, + gint row, gint column) { return table_interface_is_row_selected (table, row) && table_interface_is_column_selected(table, column); } -static gboolean +static gboolean table_interface_is_column_selected (AtkTable *table, gint column) { @@ -846,7 +846,7 @@ table_interface_is_column_selected (AtkTable *table, } } -static gint +static gint table_interface_get_selected_rows (AtkTable *table, gint **rows_selected) { @@ -881,7 +881,7 @@ table_interface_get_selected_rows (AtkTable *table, return n_rows; } -static gint +static gint table_interface_get_selected_columns (AtkTable *table, gint **columns_selected) { @@ -911,7 +911,7 @@ table_interface_get_selected_columns (AtkTable *table, } if (n_columns > 0 && start_column != -1 && columns_selected) { gint index; - + *columns_selected = (gint *) g_malloc (n_columns * sizeof (gint)); for (index = 0; index < n_columns; ++index) (*columns_selected)[index] = start_column + index; @@ -919,8 +919,8 @@ table_interface_get_selected_columns (AtkTable *table, return n_columns; } -static gboolean -table_interface_add_row_selection (AtkTable *table, +static gboolean +table_interface_add_row_selection (AtkTable *table, gint row) { AtkGObjectAccessible *atk_gobj; @@ -946,15 +946,15 @@ table_interface_add_row_selection (AtkTable *table, return TRUE; } -static gboolean -table_interface_remove_row_selection (AtkTable *table, +static gboolean +table_interface_remove_row_selection (AtkTable *table, gint row) { return FALSE; } -static gboolean -table_interface_add_column_selection (AtkTable *table, +static gboolean +table_interface_add_column_selection (AtkTable *table, gint column) { AtkGObjectAccessible *atk_gobj; @@ -980,24 +980,24 @@ table_interface_add_column_selection (AtkTable *table, return TRUE; } -static gboolean -table_interface_remove_column_selection (AtkTable *table, +static gboolean +table_interface_remove_column_selection (AtkTable *table, gint column) { /* FIXME: NOT IMPLEMENTED */ return FALSE; } -static AtkObject* -table_interface_get_row_header (AtkTable *table, +static AtkObject* +table_interface_get_row_header (AtkTable *table, gint row) { /* FIXME: NOT IMPLEMENTED */ return NULL; } -static AtkObject* -table_interface_get_column_header (AtkTable *table, +static AtkObject* +table_interface_get_column_header (AtkTable *table, gint in_col) { /* FIXME: NOT IMPLEMENTED */ @@ -1061,7 +1061,7 @@ table_interface_get_column_description (AtkTable *table, default: break; } - + ea_cell_table_set_column_label (cell_data, in_col, buffer); description = ea_cell_table_get_column_label (cell_data, in_col); } @@ -1179,7 +1179,7 @@ selection_interface_clear_selection (AtkSelection *selection) return TRUE; } -static AtkObject* +static AtkObject* selection_interface_ref_selection (AtkSelection *selection, gint i) { gint count; @@ -1244,7 +1244,7 @@ selection_interface_is_child_selected (AtkSelection *selection, gint i) if ((week_view->selection_start_day <= i)&&(week_view->selection_end_day >= i)) return TRUE; - else + else return FALSE; } |