From 18be5e6b25095ca2e901d050becd83141face316 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Tue, 17 May 2005 04:57:48 +0000 Subject: Free the EvDocumentInfo. Tue May 17 00:51:21 2005 Jonathan Blandford * backend/ev-document-info.h: * backend/ev-document.c: (ev_document_info_free): Free the EvDocumentInfo. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose), (clear_range), (add_range), (update_visible_range), (adjustment_changed_cb), (ev_sidebar_thumbnails_init), (ev_sidebar_thumbnails_set_document): * shell/ev-window.c: (ev_window_setup_document): Only render the visible thumbnails. It takes an instant to render, but it uses much less memory. --- (limited to 'backend/ev-document-info.h') diff --git a/backend/ev-document-info.h b/backend/ev-document-info.h index 85965da..15d27d0 100644 --- a/backend/ev-document-info.h +++ b/backend/ev-document-info.h @@ -75,11 +75,11 @@ typedef enum struct _EvDocumentInfo { - const char *title; - const char *format; /* eg, "pdf-1.5" */ - const char *author; - const char *subject; - const char *keywords; + char *title; + char *format; /* eg, "pdf-1.5" */ + char *author; + char *subject; + char *keywords; EvDocumentLayout layout; EvDocumentMode mode; GDate creation_date; @@ -89,6 +89,8 @@ struct _EvDocumentInfo guint fields_mask; }; +void ev_document_info_free (EvDocumentInfo *info); + G_END_DECLS #endif /* EV_DOCUMENT_INFO_H */ -- cgit v0.9.1