diff options
author | Milan Crha <mcrha@redhat.com> | 2009-06-05 20:48:29 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-06-05 20:50:42 +0800 |
commit | 84c55f4e983c4458a08f9bd19fe63b3fd7af2fa7 (patch) | |
tree | c6cb7ea33f0ef3424cc060d4d1b79287f8dd0a10 /calendar/gui | |
parent | a979826a00beebd29850445ff2a27187946fade1 (diff) | |
download | gsoc2013-evolution-84c55f4e983c4458a08f9bd19fe63b3fd7af2fa7.tar gsoc2013-evolution-84c55f4e983c4458a08f9bd19fe63b3fd7af2fa7.tar.gz gsoc2013-evolution-84c55f4e983c4458a08f9bd19fe63b3fd7af2fa7.tar.bz2 gsoc2013-evolution-84c55f4e983c4458a08f9bd19fe63b3fd7af2fa7.tar.lz gsoc2013-evolution-84c55f4e983c4458a08f9bd19fe63b3fd7af2fa7.tar.xz gsoc2013-evolution-84c55f4e983c4458a08f9bd19fe63b3fd7af2fa7.tar.zst gsoc2013-evolution-84c55f4e983c4458a08f9bd19fe63b3fd7af2fa7.zip |
Fix even more compiler warnings and disable one for format strings
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-model-tasks.c | 2 | ||||
-rw-r--r-- | calendar/gui/print.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index 63749c5aaa..63bc37af4e 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -329,7 +329,7 @@ get_priority (ECalModelComponent *comp_data) prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_PRIORITY_PROPERTY); if (prop) - return e_cal_util_priority_to_string (icalproperty_get_priority (prop)); + return (gpointer) e_cal_util_priority_to_string (icalproperty_get_priority (prop)); return (gpointer) ""; } diff --git a/calendar/gui/print.c b/calendar/gui/print.c index 6931474349..eced381faa 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -2587,11 +2587,9 @@ print_comp_draw_real (GtkPrintOperation *operation, /* Priority */ e_cal_component_get_priority (comp, &priority); if (priority && *priority >= 0) { - gchar *priority_string, *pri_text; + gchar *pri_text; - priority_string = e_cal_util_priority_to_string (*priority); - - pri_text = g_strdup_printf (_("Priority: %s"), priority_string); + pri_text = g_strdup_printf (_("Priority: %s"), e_cal_util_priority_to_string (*priority)); top = bound_text (context, font, pri_text, -1, 0.0, top, width, height, FALSE, &page_start, &pages); top += get_font_size (font) - 6; |