Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--properties/ev-properties-view.c1
-rw-r--r--shell/ev-properties-dialog.c4
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 52ec366..a6ee79c 100644
--- 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
diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c
index 70c337e..142b509 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 7bf20e1..c34bb82 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);