]> www.fi.muni.cz Git - evince.git/commitdiff
Plug a mem leak. HIG spacings.
authorChristian Persch <chpe@cvs.gnome.org>
Tue, 5 Jul 2005 15:08:35 +0000 (15:08 +0000)
committerChristian Persch <chpe@src.gnome.org>
Tue, 5 Jul 2005 15:08:35 +0000 (15:08 +0000)
2005-07-05  Christian Persch  <chpe@cvs.gnome.org>

* properties/ev-properties-view.c: (ev_properties_view_set_info):
Plug a mem leak.
* shell/ev-properties-dialog.c: (ev_properties_dialog_init):
HIG spacings.

ChangeLog
properties/ev-properties-view.c
shell/ev-properties-dialog.c

index 52ec3665b7ab69923c219126ca4d97026a1d3ab2..a6ee79c7c79761d00cb67b08137f83216440c120 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-07-05  Christian Persch  <chpe@cvs.gnome.org>
+
+       * properties/ev-properties-view.c: (ev_properties_view_set_info):
+       Plug a mem leak.
+       * shell/ev-properties-dialog.c: (ev_properties_dialog_init):
+       HIG spacings.
+
 2005-07-04  Matthew S. Wilson  <msw@rpath.com>
 
        * shell/ev-properties-dialog.c
index 70c337e2dfbeb001359ba7673867a148590ac986..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);
index 7bf20e17191d8a4b6d30fef2819fd0d0a975a399..c34bb826840392ed970ce4b66643df032cb181f9 100644 (file)
@@ -61,12 +61,14 @@ ev_properties_dialog_init (EvPropertiesDialog *properties)
        gtk_window_set_title (GTK_WINDOW (properties), _("Properties"));
        gtk_window_set_destroy_with_parent (GTK_WINDOW (properties), TRUE);
        gtk_dialog_set_has_separator (GTK_DIALOG (properties), FALSE);
-        gtk_container_set_border_width (GTK_CONTAINER (properties), 5);
+       gtk_container_set_border_width (GTK_CONTAINER (properties), 5);
+       gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (properties)->vbox), 12);
 
        gtk_dialog_add_button (GTK_DIALOG (properties), GTK_STOCK_CLOSE,
                               GTK_RESPONSE_ACCEPT);
 
        properties->notebook = gtk_notebook_new ();
+       gtk_container_set_border_width (GTK_CONTAINER (properties->notebook), 5);
        gtk_box_pack_start (GTK_BOX (GTK_DIALOG (properties)->vbox),
                            properties->notebook, TRUE, TRUE, 0);
        gtk_widget_show (properties->notebook);