aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rwxr-xr-xembed/print-dialog.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 71fc0cf26..95916b84b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-15 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/print-dialog.c: (print_get_info):
+
+ Expand initial ~ in file name to print to.
+
2003-08-14 Marco Pesenti Gritti <marco@.gnome.org>
* embed/mozilla/EphyWrapper.cpp:
diff --git a/embed/print-dialog.c b/embed/print-dialog.c
index 576a8ce51..9ece4cba5 100755
--- a/embed/print-dialog.c
+++ b/embed/print-dialog.c
@@ -22,6 +22,7 @@
#include "ephy-prefs.h"
#include <gtk/gtkdialog.h>
#include <gtk/gtkstock.h>
+#include <libgnomevfs/gnome-vfs-utils.h>
#define CONF_PRINT_BOTTOM_MARGIN "/apps/epiphany/dialogs/print_bottom_margin"
#define CONF_PRINT_TOP_MARGIN "/apps/epiphany/dialogs/print_top_margin"
@@ -299,7 +300,7 @@ print_get_info (EphyDialog *dialog)
g_value_unset (&printer);
ephy_dialog_get_value (dialog, FILE_PROP, &file);
- info->file = g_strdup (g_value_get_string (&file));
+ info->file = gnome_vfs_expand_initial_tilde (g_value_get_string (&file));
g_value_unset (&file);
ephy_dialog_get_value (dialog, BOTTOM_PROP, &bottom_margin);