diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2006-01-27 22:50:40 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2006-01-27 22:50:40 +0800 |
commit | 08d6eeabaa3402e349a2d88b1e344b5fc04815bc (patch) | |
tree | 7e50ef67042d5a5c9d0c61e566e4c88b301a8ef8 /a11y/calendar | |
parent | 89c42a519884edd815dff38dd8530b7403f350d1 (diff) | |
download | gsoc2013-evolution-08d6eeabaa3402e349a2d88b1e344b5fc04815bc.tar.gz gsoc2013-evolution-08d6eeabaa3402e349a2d88b1e344b5fc04815bc.tar.zst gsoc2013-evolution-08d6eeabaa3402e349a2d88b1e344b5fc04815bc.zip |
reviewed by: Harish Krishnaswamy <kharish@novell.com>
2006-01-27 Kjartan Maraas <kmaraas@gnome.org>
reviewed by: Harish Krishnaswamy <kharish@novell.com>
* addressbook/ea-addressbook.c: Remove extra semi-colons.
* calendar/ea-cal-view.c: (ea_cal_view_event_changed_cb),
(ea_cal_view_event_added_cb), (action_interface_get_keybinding):
Remove unused code and variables.
* calendar/ea-day-view-main-item.c:
(table_interface_get_row_description): More removal of unused bits
* calendar/ea-week-view-main-item.c:
(ea_week_view_main_item_get_row_at_index),
(ea_week_view_main_item_get_column_at_index),
(ea_week_view_main_item_get_row_label),
(table_interface_get_n_columns),
(table_interface_get_column_description): Same again.
* e-table/gal-a11y-e-table-item.c: (gal_a11y_e_table_item_new):
And again.
* e-table/gal-a11y-e-table.c: (et_ref_child): Remove unused var.
* e-table/gal-a11y-e-tree.c: (gal_a11y_e_tree_new): Again.
* e-text/gal-a11y-e-text.c: (et_set_selection),
(et_real_initialize): Same here too.
* widgets/ea-calendar-item.c:
(table_interface_get_column_description),
(table_interface_get_row_description),
(selection_interface_is_child_selected),
(ea_calendar_item_get_cell_data): And here too.
* widgets/ea-widgets.c: More redundant semi-colons.
svn path=/trunk/; revision=31324
Diffstat (limited to 'a11y/calendar')
-rw-r--r-- | a11y/calendar/ea-cal-view.c | 12 | ||||
-rw-r--r-- | a11y/calendar/ea-day-view-main-item.c | 5 | ||||
-rw-r--r-- | a11y/calendar/ea-week-view-main-item.c | 25 |
3 files changed, 0 insertions, 42 deletions
diff --git a/a11y/calendar/ea-cal-view.c b/a11y/calendar/ea-cal-view.c index 31400ca2da..6a25455410 100644 --- a/a11y/calendar/ea-cal-view.c +++ b/a11y/calendar/ea-cal-view.c @@ -191,7 +191,6 @@ ea_cal_view_event_changed_cb (ECalendarView *cal_view, ECalendarViewEvent *event gpointer data) { AtkObject *atk_obj; - EaCalView *ea_cal_view; AtkObject *event_atk_obj = NULL; g_return_if_fail (E_IS_CALENDAR_VIEW (cal_view)); @@ -199,7 +198,6 @@ ea_cal_view_event_changed_cb (ECalendarView *cal_view, ECalendarViewEvent *event atk_obj = gtk_widget_get_accessible (GTK_WIDGET(cal_view)); if (!EA_IS_CAL_VIEW (atk_obj)) return; - ea_cal_view = EA_CAL_VIEW (atk_obj); if ((E_IS_DAY_VIEW (cal_view)) && event && event->canvas_item) { event_atk_obj = @@ -230,7 +228,6 @@ ea_cal_view_event_added_cb (ECalendarView *cal_view, ECalendarViewEvent *event, gpointer data) { AtkObject *atk_obj; - EaCalView *ea_cal_view; AtkObject *event_atk_obj = NULL; gint index; @@ -239,7 +236,6 @@ ea_cal_view_event_added_cb (ECalendarView *cal_view, ECalendarViewEvent *event, atk_obj = gtk_widget_get_accessible (GTK_WIDGET(cal_view)); if (!EA_IS_CAL_VIEW (atk_obj)) return; - ea_cal_view = EA_CAL_VIEW (atk_obj); if ((E_IS_DAY_VIEW (cal_view)) && event && event->canvas_item) { event_atk_obj = @@ -391,7 +387,6 @@ static G_CONST_RETURN gchar* action_interface_get_keybinding (AtkAction *action, gint index) { GtkWidget *widget; - EaCalView *ea_cal_view; widget = GTK_ACCESSIBLE (action)->widget; if (widget == NULL) @@ -403,29 +398,22 @@ action_interface_get_keybinding (AtkAction *action, gint index) if (!GTK_WIDGET_IS_SENSITIVE (widget) || !GTK_WIDGET_VISIBLE (widget)) return FALSE; - ea_cal_view = EA_CAL_VIEW (action); - switch (index) { case 0: /* New Appointment */ return "<Alt>fna;<Control>n"; - break; case 1: /* New Event */ return "<Alt>fnd;<Shift><Control>d"; - break; case 2: /* New Meeting */ return "<Alt>fne;<Shift><Control>e"; - break; case 3: /* Go to today */ return "<Alt>vt;<Alt><Control>t"; - break; case 4: /* Go to date */ return "<Alt>vd;<Alt><Control>g"; - break; default: break; } diff --git a/a11y/calendar/ea-day-view-main-item.c b/a11y/calendar/ea-day-view-main-item.c index ea8b9ce2ee..4912e6ee7a 100644 --- a/a11y/calendar/ea-day-view-main-item.c +++ b/a11y/calendar/ea-day-view-main-item.c @@ -1085,8 +1085,6 @@ table_interface_get_row_description (AtkTable *table, { AtkGObjectAccessible *atk_gobj; GObject *g_obj; - EDayViewMainItem *main_item; - EDayView *day_view; EaDayViewMainItem* ea_main_item = EA_DAY_VIEW_MAIN_ITEM (table); const gchar *description; EaCellTable *cell_data; @@ -1096,9 +1094,6 @@ table_interface_get_row_description (AtkTable *table, if (!g_obj) return NULL; - main_item = E_DAY_VIEW_MAIN_ITEM (g_obj); - day_view = main_item->day_view; - if (row < 0 || row >= 12 * 24) return NULL; cell_data = ea_day_view_main_item_get_cell_data (ea_main_item); diff --git a/a11y/calendar/ea-week-view-main-item.c b/a11y/calendar/ea-week-view-main-item.c index 81a66cfedc..490c235446 100644 --- a/a11y/calendar/ea-week-view-main-item.c +++ b/a11y/calendar/ea-week-view-main-item.c @@ -491,8 +491,6 @@ ea_week_view_main_item_get_row_at_index (EaWeekViewMainItem *ea_main_item, { AtkGObjectAccessible *atk_gobj; GObject *g_obj; - EWeekViewMainItem *main_item; - EWeekView *week_view; gint n_children; g_return_val_if_fail (ea_main_item, -1); @@ -502,9 +500,6 @@ ea_week_view_main_item_get_row_at_index (EaWeekViewMainItem *ea_main_item, if (!g_obj) return -1; - main_item = E_WEEK_VIEW_MAIN_ITEM (g_obj); - week_view = main_item->week_view; - n_children = ea_week_view_main_item_get_n_children (ATK_OBJECT (ea_main_item)); if (index >= 0 && index < n_children) return index / 7; @@ -517,8 +512,6 @@ ea_week_view_main_item_get_column_at_index (EaWeekViewMainItem *ea_main_item, { AtkGObjectAccessible *atk_gobj; GObject *g_obj; - EWeekViewMainItem *main_item; - EWeekView *week_view; gint n_children; g_return_val_if_fail (ea_main_item, -1); @@ -528,9 +521,6 @@ ea_week_view_main_item_get_column_at_index (EaWeekViewMainItem *ea_main_item, if (!g_obj) return -1; - main_item = E_WEEK_VIEW_MAIN_ITEM (g_obj); - week_view = main_item->week_view; - n_children = ea_week_view_main_item_get_n_children (ATK_OBJECT (ea_main_item)); if (index >= 0 && index < n_children) return index % 7; @@ -543,8 +533,6 @@ ea_week_view_main_item_get_row_label (EaWeekViewMainItem *ea_main_item, { AtkGObjectAccessible *atk_gobj; GObject *g_obj; - EWeekViewMainItem *main_item; - EWeekView *week_view; g_return_val_if_fail (ea_main_item, 0); @@ -553,9 +541,6 @@ ea_week_view_main_item_get_row_label (EaWeekViewMainItem *ea_main_item, if (!g_obj) return 0 ; - main_item = E_WEEK_VIEW_MAIN_ITEM (g_obj); - week_view = main_item->week_view; - return g_snprintf (buffer, buffer_size, "the %i week", row + 1); @@ -715,8 +700,6 @@ table_interface_get_n_columns (AtkTable *table) { AtkGObjectAccessible *atk_gobj; GObject *g_obj; - EWeekViewMainItem *main_item; - EWeekView *week_view; EaWeekViewMainItem* ea_main_item = EA_WEEK_VIEW_MAIN_ITEM (table); atk_gobj = ATK_GOBJECT_ACCESSIBLE (ea_main_item); @@ -724,9 +707,6 @@ table_interface_get_n_columns (AtkTable *table) if (!g_obj) return -1; - main_item = E_WEEK_VIEW_MAIN_ITEM (g_obj); - week_view = main_item->week_view; - return 7; } @@ -1037,8 +1017,6 @@ table_interface_get_column_description (AtkTable *table, { AtkGObjectAccessible *atk_gobj; GObject *g_obj; - EWeekViewMainItem *main_item; - EWeekView *week_view; EaWeekViewMainItem* ea_main_item = EA_WEEK_VIEW_MAIN_ITEM (table); const gchar *description; EaCellTable *cell_data; @@ -1048,9 +1026,6 @@ table_interface_get_column_description (AtkTable *table, if (!g_obj) return NULL; - main_item = E_WEEK_VIEW_MAIN_ITEM (g_obj); - week_view = main_item->week_view; - if (in_col < 0 || in_col > 6) return NULL; cell_data = ea_week_view_main_item_get_cell_data (ea_main_item); |