aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-08-28 22:04:21 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-08-28 22:04:21 +0800
commit7037bfe82d12fdf39441507e10a4085c6d59e586 (patch)
treecaa5c84043270871ed0a87443753a528899b4a66 /calendar
parentb693cbeb05a95fd893ef6053548c7aa7300c999a (diff)
downloadgsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.tar
gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.tar.gz
gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.tar.bz2
gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.tar.lz
gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.tar.xz
gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.tar.zst
gsoc2013-evolution-7037bfe82d12fdf39441507e10a4085c6d59e586.zip
** Related to bug #547822
2008-08-28 Matthew Barnes <mbarnes@redhat.com> ** Related to bug #547822 * calendar/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. svn path=/trunk/; revision=36166
Diffstat (limited to 'calendar')
-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;