aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/ea-week-view-cell.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/ea-week-view-cell.c')
-rw-r--r--calendar/gui/ea-week-view-cell.c50
1 files changed, 30 insertions, 20 deletions
diff --git a/calendar/gui/ea-week-view-cell.c b/calendar/gui/ea-week-view-cell.c
index e8fffd8500..2ceb8e17bc 100644
--- a/calendar/gui/ea-week-view-cell.c
+++ b/calendar/gui/ea-week-view-cell.c
@@ -55,8 +55,9 @@ e_week_view_cell_get_type (void)
NULL /* value table */
};
- type = g_type_register_static (G_TYPE_OBJECT,
- "EWeekViewCell", &tinfo, 0);
+ type = g_type_register_static (
+ G_TYPE_OBJECT,
+ "EWeekViewCell", &tinfo, 0);
}
return type;
@@ -140,10 +141,12 @@ ea_week_view_cell_get_type (void)
(GInterfaceFinalizeFunc) NULL,
NULL
};
- type = g_type_register_static (ATK_TYPE_GOBJECT_ACCESSIBLE,
- "EaWeekViewCell", &tinfo, 0);
- g_type_add_interface_static (type, ATK_TYPE_COMPONENT,
- &atk_component_info);
+ type = g_type_register_static (
+ ATK_TYPE_GOBJECT_ACCESSIBLE,
+ "EaWeekViewCell", &tinfo, 0);
+ g_type_add_interface_static (
+ type, ATK_TYPE_COMPONENT,
+ &atk_component_info);
}
@@ -185,7 +188,8 @@ ea_week_view_cell_new (GObject *obj)
#ifdef ACC_DEBUG
++n_ea_week_view_cell_created;
- printf ("ACC_DEBUG: n_ea_week_view_cell_created = %d\n",
+ printf (
+ "ACC_DEBUG: n_ea_week_view_cell_created = %d\n",
n_ea_week_view_cell_created);
#endif
return atk_object;
@@ -197,7 +201,8 @@ static void ea_week_view_cell_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
++n_ea_week_view_cell_destroyed;
- printf ("ACC_DEBUG: n_ea_week_view_cell_destroyed = %d\n",
+ printf (
+ "ACC_DEBUG: n_ea_week_view_cell_destroyed = %d\n",
n_ea_week_view_cell_destroyed);
}
#endif
@@ -237,10 +242,12 @@ ea_week_view_cell_get_name (AtkObject *accessible)
new_row = cell->row;
}
- column_label = atk_table_get_column_description (ATK_TABLE (ea_main_item),
- new_column);
- row_label = atk_table_get_row_description (ATK_TABLE (ea_main_item),
- new_row);
+ column_label = atk_table_get_column_description (
+ ATK_TABLE (ea_main_item),
+ new_column);
+ row_label = atk_table_get_row_description (
+ ATK_TABLE (ea_main_item),
+ new_row);
new_name = g_strconcat (column_label, " ", row_label, NULL);
ATK_OBJECT_CLASS (parent_class)->set_name (accessible, new_name);
g_free (new_name);
@@ -321,8 +328,9 @@ ea_week_view_cell_get_index_in_parent (AtkObject *accessible)
cell = E_WEEK_VIEW_CELL (g_obj);
parent = atk_object_get_parent (accessible);
- return atk_table_get_index_at (ATK_TABLE (parent),
- cell->row, cell->column);
+ return atk_table_get_index_at (
+ ATK_TABLE (parent),
+ cell->row, cell->column);
}
/* Atk Component Interface */
@@ -367,12 +375,14 @@ component_interface_get_extents (AtkComponent *component,
main_canvas = cell->week_view->main_canvas;
atk_obj = atk_gobject_accessible_for_object (G_OBJECT (main_canvas));
- atk_component_get_extents (ATK_COMPONENT (atk_obj),
- x, y,
- &week_view_width, &week_view_height,
- coord_type);
- gnome_canvas_get_scroll_offsets (GNOME_CANVAS (week_view->main_canvas),
- &scroll_x, &scroll_y);
+ atk_component_get_extents (
+ ATK_COMPONENT (atk_obj),
+ x, y,
+ &week_view_width, &week_view_height,
+ coord_type);
+ gnome_canvas_get_scroll_offsets (
+ GNOME_CANVAS (week_view->main_canvas),
+ &scroll_x, &scroll_y);
start_day = week_view->display_start_day;
if (week_view->multi_week_view) {
if (week_view->compress_weekend && (cell->column == (5 - start_day))) {