aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/widgets
diff options
context:
space:
mode:
authorWang Xin <jedy.wang@sun.com>2007-03-30 16:08:14 +0800
committerJedy Jedy Wang <jedywang@src.gnome.org>2007-03-30 16:08:14 +0800
commitc029712c961ba26c90d9263a185c71f7286e9ece (patch)
tree94fa88d14cfe87f3e136bf3637477ecc51edf7c6 /a11y/widgets
parentb4ed9e8de8cef94bef2b7861e429382fdeeb7e85 (diff)
downloadgsoc2013-evolution-c029712c961ba26c90d9263a185c71f7286e9ece.tar.gz
gsoc2013-evolution-c029712c961ba26c90d9263a185c71f7286e9ece.tar.zst
gsoc2013-evolution-c029712c961ba26c90d9263a185c71f7286e9ece.zip
Fixes #415985 and #416028.
2007-03-30 Wang Xin <jedy.wang@sun.com> * widgets/ea-calendar-item.c: Fixes #415985 and #416028. svn path=/trunk/; revision=33345
Diffstat (limited to 'a11y/widgets')
-rw-r--r--a11y/widgets/ea-calendar-item.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/a11y/widgets/ea-calendar-item.c b/a11y/widgets/ea-calendar-item.c
index 2529cb87b8..fa7e85c397 100644
--- a/a11y/widgets/ea-calendar-item.c
+++ b/a11y/widgets/ea-calendar-item.c
@@ -282,6 +282,8 @@ ea_calendar_item_get_name (AtkObject *accessible)
g_return_val_if_fail (EA_IS_CALENDAR_ITEM (accessible), NULL);
g_obj = atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE(accessible));
+ if (!g_obj)
+ return NULL;
g_return_val_if_fail (E_IS_CALENDAR_ITEM (g_obj), NULL);
calitem = E_CALENDAR_ITEM (g_obj);
@@ -637,7 +639,8 @@ table_interface_is_row_selected (AtkTable *table,
row_index_end = row_index_start + EA_CALENDAR_COLUMN_NUM - 1;
calitem = E_CALENDAR_ITEM (g_obj);
- e_calendar_item_get_selection (calitem, &start_date, &end_date);
+ if (!e_calendar_item_get_selection (calitem, &start_date, &end_date))
+ return FALSE;
e_calendar_item_get_offset_for_date (calitem,
g_date_get_year (&start_date),
@@ -689,7 +692,8 @@ table_interface_is_selected (AtkTable *table,
index = table_interface_get_index_at (table, row, column);
calitem = E_CALENDAR_ITEM (g_obj);
- e_calendar_item_get_selection (calitem, &start_date, &end_date);
+ if (!e_calendar_item_get_selection (calitem, &start_date, &end_date))
+ return FALSE;
e_calendar_item_get_offset_for_date (calitem,
g_date_get_year (&start_date),
@@ -932,7 +936,8 @@ selection_interface_ref_selection (AtkSelection *selection, gint i)
g_obj = atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (ea_calitem));
calitem = E_CALENDAR_ITEM (g_obj);
- e_calendar_item_get_selection (calitem, &start_date, &end_date);
+ if (!e_calendar_item_get_selection (calitem, &start_date, &end_date))
+ return NULL;
if (!e_calendar_item_get_offset_for_date (calitem,
g_date_get_year (&start_date),
g_date_get_month (&start_date) - 1,
@@ -958,9 +963,10 @@ selection_interface_get_selection_count (AtkSelection *selection)
return 0;
calitem = E_CALENDAR_ITEM (g_obj);
- e_calendar_item_get_selection (calitem, &start_date, &end_date);
-
- return g_date_days_between (&start_date, &end_date) + 1;
+ if (e_calendar_item_get_selection (calitem, &start_date, &end_date))
+ return g_date_days_between (&start_date, &end_date) + 1;
+ else
+ return 0;
}
static gboolean
~lantw44/cgit/gsoc2013-evolution/commit/help?h=EVOLUTION_2_91_5&id=54703eacaa8d2c0dfbf0ac9fca0ba36eeffd7c06'>** Committed on behalf of PC Radhika <pradhika@novell.com>Andre Klapper2009-03-092-58/+166 * Added Catalan translation of the Evolution welcome e-mail and quickDavid Planella2009-03-085-1/+136 * Updated British English translation.Philip Withnall2009-03-032-5128/+12616 * Added image in Basque language. Images are: account_editor_a.pngInaki Larranaga Murgoitio2009-02-18120-0/+64 * Added Basque translation. Added 'eu' to DOC_LINGUAS.Inaki Larranaga Murgoitio2009-02-162-1/+6 * svn path=/trunk/; revision=37277Iñaki Larrañaga Murgoitio2009-02-161-0/+9303 * ** Removed unused figures (bug #552695)Matthew Barnes2009-02-1148-47/+7 * Updated Czech translation by Jiri Eischmann.Petr Kovar2009-02-022-4807/+9889 * Updated German translation.Andre Klapper2009-01-252-23/+27 * Updated Spanish translationJorge Gonzalez Gonzalez2009-01-202-2697/+2871 * Doc : Updated screenshots. Committing on behalf of PC Radhika <pradhika@novel...Johnny Jacob2009-01-165-0/+10 * Sync two strings. Remove explicit mentioning of some translators.Andre Klapper2009-01-122-16/+6 * Remove more redundancy; split up more strings.Andre Klapper2009-01-122-11/+16 * Remove redundancy; split up strings. Fixes bug #567409.Andre Klapper2009-01-122-33/+51 * Fix typos. Fixes bug #566572.Andre Klapper2009-01-122-6/+10 * Updated German translation.Andre Klapper2009-01-122-159/+106 * B & W version of our new logo to replace the old Ximian logo.Matthew Barnes2009-01-0918-18471/+307 * Updated Spanish translationJorge Gonzalez Gonzalez2009-01-071-85/+44 * Updated Spanish translationJorge Gonzalez Gonzalez2009-01-061-38/+15 * Updated Spanish translationJorge Gonzalez Gonzalez2009-01-061-36/+17 * Updated Spanish translationJorge Gonzalez Gonzalez2009-01-062-39/+31 * Updated Spanish screenshotJorge Gonzalez Gonzalez2009-01-061-0/+0 * Added Spanish screenshotsJorge Gonzalez Gonzalez2009-01-063-0/+0 * Updated Spanish translation and added three screenshotsJorge Gonzalez Gonzalez2009-01-055-35/+16 * Updated Spanish translationJorge Gonzalez Gonzalez2009-01-052-32/+17 * Updated German translation.Andre Klapper2009-01-052-2662/+1964 * Updated Spanish translationJorge Gonzalez Gonzalez2009-01-052-2997/+3403 * Link sentence "You can also enable Magic spacebar" against theAndre Klapper2009-01-042-1/+6 * s/and/or. Fixes bug #566233.Andre Klapper2009-01-042-1/+5 * Fix wrong sentence. Fixes bug #566228.Andre Klapper2009-01-042-1/+5 * Add missing whitespace.Andre Klapper2009-01-042-1/+5 * Add warning that PGP Encrypt will not encrypt subject lines. Fixes bugAndre Klapper2009-01-042-0/+8 * Sync strings. Fixes bug #566236, bug #566238.Andre Klapper2009-01-042-5/+10 * Sync strings. Fixes bug #566234.Andre Klapper2009-01-042-1/+6 * Fix grammatical errors. Fixes bug #558492. Patch by Nanley Chery.Andre Klapper2009-01-042-1/+6 * Fix non-sense split sentences. Fixes bug #544340, bug #544339.Andre Klapper2009-01-042-2/+7 * Fix typos. Bug #544335. Patch by Philip Withnall.Andre Klapper2009-01-042-14/+19 * Added a few translated screenshots.Andre Klapper2009-01-0318-0/+4 * Update German translation.Andre Klapper2009-01-032-2781/+2843 * ** Fixes part of bug #546437Matthew Barnes2009-01-022-172/+140 * Update German translation.Andre Klapper2009-01-022-2290/+2778 * Added Czech translation of quickref.Andre Klapper2009-01-021-8/+8 * Remove Makefile and Makefile.in. Sorry.Andre Klapper2009-01-022-1118/+0 * svn path=/trunk/; revision=36952Andre Klapper2009-01-02106-1/+1347 * Updated Czech translation of manual by Jiri Eischmann.Andre Klapper2009-01-022-297/+309 * Updated Czech translation of manual by Jiri Eischmann.Petr Kovar2008-11-152-93/+97 * Fixed Czech translation by Jiri Eischmann, thanks to Kamil Paral. Updated Cze...Petr Kovář2008-11-102-6744/+2614 * Updated Spanish translationJorge Gonzalez Gonzalez2008-10-272-480/+248 * Updated Czech translation of manual by Jiri Eischmann.Petr Kovar2008-09-292-4879/+9459 * Updated French translation.Claude Paroz2008-09-24