]> www.fi.muni.cz Git - evince.git/blobdiff - properties/ev-properties-view.c
Add 'timestamp' argument to ev_application_open_window and
[evince.git] / properties / ev-properties-view.c
index 70c337e2dfbeb001359ba7673867a148590ac986..669421fdf8370815ba83b4a6bff7d9f3a7578cf8 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);
@@ -242,7 +243,7 @@ ev_properties_view_init (EvPropertiesView *properties)
        GladeXML *xml;
 
        /* Create a new GladeXML object from XML file glade_file */
-       xml = glade_xml_new (DATADIR "/evince-properties.glade", "general_page_root", NULL);
+       xml = glade_xml_new (DATADIR "/evince-properties.glade", "general_page_root", GETTEXT_PACKAGE);
        properties->xml = xml;
        g_assert (xml != NULL);