blob: f7c9d390caf00f244a730c8455cef809a5e66975 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- gnome-panel-2.18.0/applets/clock/calendar-client.c (revision 10319)
+++ gnome-panel-2.18.0/applets/clock/calendar-client.c (working copy)
@@ -614,8 +614,13 @@
get_ical_percent_complete (icalcomponent *ical)
{
icalproperty *prop;
+ icalproperty_status status;
int percent_complete;
+ status = icalcomponent_get_status (ical);
+ if (status == ICAL_STATUS_COMPLETED)
+ return 100;
+
prop = icalcomponent_get_first_property (ical, ICAL_COMPLETED_PROPERTY);
if (prop)
return 100;
|