aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/print.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 7f5ef1df02..ef3cff8ea8 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2008-08-28 Matthew Barnes <mbarnes@redhat.com>
+
+ ** Related to bug #547822
+
+ * gui/print.c (print_table_draw_page), (print_table):
+ Use g_malloc() and g_free() instead of malloc() and free().
+ Also fix an "assignment discards qualifiers" compiler warning.
+
2008-08-27 Sankar P <psankar@novell.com>
License Changes
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index dd990739e6..e68ec84a84 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -2746,7 +2746,7 @@ print_title (GtkPrintContext *context, const gchar *text, gdouble page_width)
struct print_opts {
EPrintable *printable;
- gchar *print_header;
+ const gchar *print_header;
};
static void
@@ -2772,7 +2772,7 @@ print_table_draw_page (GtkPrintOperation *operation,
} while (e_printable_data_left (opts->printable));
- free(opts);
+ g_free (opts);
}
void
@@ -2790,7 +2790,7 @@ print_table (ETable *table, const gchar *dialog_title,
operation = e_print_operation_new ();
gtk_print_operation_set_n_pages (operation, 1);
- opts = malloc(sizeof(struct print_opts));
+ opts = g_malloc (sizeof (struct print_opts));
opts->printable = printable;
opts->print_header = print_header;