From: Christian Persch Date: Tue, 5 Jul 2005 15:08:35 +0000 (+0000) Subject: Plug a mem leak. HIG spacings. X-Git-Tag: EVINCE_0_3_3~167 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=26a8622fe284cd0e4531caa56f918d7cfaf8037b;p=evince.git Plug a mem leak. HIG spacings. 2005-07-05 Christian Persch * 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. --- diff --git a/ChangeLog b/ChangeLog index 52ec3665..a6ee79c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-07-05 Christian Persch + + * 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 * shell/ev-properties-dialog.c diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index 70c337e2..142b5099 100644 --- a/properties/ev-properties-view.c +++ b/properties/ev-properties-view.c @@ -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); diff --git a/shell/ev-properties-dialog.c b/shell/ev-properties-dialog.c index 7bf20e17..c34bb826 100644 --- a/shell/ev-properties-dialog.c +++ b/shell/ev-properties-dialog.c @@ -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);