]> www.fi.muni.cz Git - evince.git/blobdiff - properties/ev-properties-view.c
Make frontends depend on just libev. Rework and group CFLAGS/LIBS
[evince.git] / properties / ev-properties-view.c
index 297cbc5d5cf115bef2af3f3bb5a9cd5a96a9baa7..142b5099dab869c179e71457b7c10036622498be 100644 (file)
@@ -222,6 +222,7 @@ ev_properties_view_set_info (EvPropertiesView *properties, const EvDocumentInfo
        if (info->fields_mask & EV_DOCUMENT_INFO_FORMAT) {
                text = g_strdup_printf ("%s", info->format);
                set_property (xml, FORMAT_PROPERTY, text);
+               g_free (text);
        }
        if (info->fields_mask & EV_DOCUMENT_INFO_N_PAGES) {
                text = g_strdup_printf ("%d", info->n_pages);
@@ -251,6 +252,12 @@ ev_properties_view_init (EvPropertiesView *properties)
                            TRUE, TRUE, 0);
 }
 
+void
+ev_properties_view_register_type (GTypeModule *module)
+{
+       ev_properties_view_get_type ();
+}
+
 GtkWidget *
 ev_properties_view_new (void)
 {