aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/print.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-09-26 05:12:41 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-09-26 05:12:41 +0800
commit3c4c88c9741faaa1e3d466fb1458dd4f212b42eb (patch)
treebf2e89129b5b11e15dce7107194ad3b194adba2c /calendar/gui/print.c
parent6dc2b5fac8deaa57b0a84f74dec98476a3066849 (diff)
downloadgsoc2013-evolution-3c4c88c9741faaa1e3d466fb1458dd4f212b42eb.tar
gsoc2013-evolution-3c4c88c9741faaa1e3d466fb1458dd4f212b42eb.tar.gz
gsoc2013-evolution-3c4c88c9741faaa1e3d466fb1458dd4f212b42eb.tar.bz2
gsoc2013-evolution-3c4c88c9741faaa1e3d466fb1458dd4f212b42eb.tar.lz
gsoc2013-evolution-3c4c88c9741faaa1e3d466fb1458dd4f212b42eb.tar.xz
gsoc2013-evolution-3c4c88c9741faaa1e3d466fb1458dd4f212b42eb.tar.zst
gsoc2013-evolution-3c4c88c9741faaa1e3d466fb1458dd4f212b42eb.zip
Warning fixes courtesy of Chris Lahey <clahey@ximian.com>.
2001-09-25 Federico Mena Quintero <federico@ximian.com> Warning fixes courtesy of Chris Lahey <clahey@ximian.com>. * gui/e-itip-control.c (write_html): Warning fixes. Also, don't strdup() more than necessary. * gui/e-meeting-time-sel.c (e_meeting_time_selector_refresh_cb): Warning fixes. * gui/itip-utils.c (itip_addresses_get): Warning fixes. * gui/print.c (print_day_background): Warning fixes. * gui/dialogs/alarm-options.c (alarm_to_aalarm_widgets): Warning fixes. (alarm_to_palarm_widgets): Likewise. * gui/dialogs/delete-comp.c: #include "../calendar-config.h" svn path=/trunk/; revision=13120
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r--calendar/gui/print.c39
1 files changed, 20 insertions, 19 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 3a3ba64b22..e7848e2ef4 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -715,7 +715,8 @@ print_day_background (GnomePrintContext *pc, GnomeCalendar *gcal,
double yinc, y;
double width = DAY_VIEW_TIME_COLUMN_WIDTH;
double font_size, max_font_size, hour_font_size, minute_font_size;
- char buf[20], *minute;
+ char buf[20];
+ const char *minute;
gboolean use_24_hour;
int i, hour, row;
@@ -763,8 +764,8 @@ print_day_background (GnomePrintContext *pc, GnomeCalendar *gcal,
} else {
if (i < 12)
minute = U_("am");
- else
- minute = U_("pm");
+ else
+ minute = U_("pm");
hour = i % 12;
if (hour == 0)
@@ -806,7 +807,7 @@ print_day_add_event (CalComponent *comp,
time_t start,
time_t end,
gint days_shown,
- time_t *day_starts,
+ time_t *day_starts,
GArray *long_events,
GArray **events)
@@ -2074,7 +2075,7 @@ write_label_piece (time_t t, char *buffer, int size, char *stext, char *etext)
icaltimezone *zone = get_timezone ();
struct tm *tmp_tm;
int len;
-
+
tmp_tm = convert_timet_to_struct_tm (t, zone);
if (stext != NULL)
@@ -2082,7 +2083,7 @@ write_label_piece (time_t t, char *buffer, int size, char *stext, char *etext)
len = strlen (buffer);
e_time_format_date_and_time (tmp_tm,
- calendar_config_get_24_hour_format (),
+ calendar_config_get_24_hour_format (),
FALSE, FALSE,
&buffer[len], size - len);
if (etext != NULL)
@@ -2133,7 +2134,7 @@ print_date_label (GnomePrintContext *pc, CalComponent *comp,
else
write_label_piece (complete, buffer, 1024, _("Completed "), NULL);
}
-
+
if (due > 0 && complete == 0) {
if (start > 0)
write_label_piece (due, buffer, 1024, _(" (Due "), ")");
@@ -2155,9 +2156,9 @@ print_comp_item (GnomePrintContext *pc, CalComponent *comp,
CalComponentVType vtype;
CalComponentText text;
GSList *desc, *l;
-
+
vtype = cal_component_get_vtype (comp);
-
+
switch (vtype) {
case CAL_COMPONENT_EVENT:
case CAL_COMPONENT_TODO:
@@ -2166,7 +2167,7 @@ print_comp_item (GnomePrintContext *pc, CalComponent *comp,
print_text_size (pc, 18, text.value, ALIGN_LEFT,
left+3, right, top-3, top - 21);
top -= 21;
-
+
/* Date information */
print_date_label (pc, comp, left+3, right, top-3, top - 15);
top -= 30;
@@ -2176,7 +2177,7 @@ print_comp_item (GnomePrintContext *pc, CalComponent *comp,
cal_component_get_description_list (comp, &desc);
for (l = desc; l != NULL; l = l->next) {
CalComponentText *text = l->data;
-
+
if (text->value != NULL)
top = bound_text (pc, font, text->value, left, right, top-3, bottom, 3);
}
@@ -2328,7 +2329,7 @@ print_comp (CalComponent *comp, gboolean preview)
if (!preview) {
GtkWidget *gpd;
- gpd = gnome_print_dialog_new (_("Print Item"),
+ gpd = gnome_print_dialog_new (_("Print Item"),
GNOME_PRINT_DIALOG_COPIES);
gnome_dialog_set_default (GNOME_DIALOG (gpd),
@@ -2405,23 +2406,23 @@ print_setup (void)
{
GtkWidget *dlg, *ps;
gint btn;
-
+
ps = gnome_paper_selector_new ();
gtk_widget_show (ps);
-
- dlg = gnome_dialog_new (_("Print Setup"),
- GNOME_STOCK_BUTTON_OK,
- GNOME_STOCK_BUTTON_CANCEL,
+
+ dlg = gnome_dialog_new (_("Print Setup"),
+ GNOME_STOCK_BUTTON_OK,
+ GNOME_STOCK_BUTTON_CANCEL,
NULL);
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dlg)->vbox), ps, TRUE, TRUE, 2);
btn = gnome_dialog_run (GNOME_DIALOG (dlg));
if (btn == 0) {
gchar *name;
-
+
name = gnome_paper_selector_get_name (GNOME_PAPER_SELECTOR (ps));
paper_info = gnome_paper_with_name (name);
}
-
+
gnome_dialog_close (GNOME_DIALOG (dlg));
}