From f4f15a082b32eb99b34ff237fef1772e07079045 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 15 Aug 2003 10:03:27 +0000 Subject: Expand initial ~ in file name to print to. 2003-08-15 Christian Persch * embed/print-dialog.c: (print_get_info): Expand initial ~ in file name to print to. --- embed/print-dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embed/print-dialog.c') 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 #include +#include #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); -- cgit v1.2.3