aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-08-15 18:03:27 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-15 18:03:27 +0800
commitf4f15a082b32eb99b34ff237fef1772e07079045 (patch)
treedb5a565b9c2a03505c3482a45ff74a214ac5a624 /embed
parentcef2c42a07d633d2431872c9a8929f28a052c6f3 (diff)
downloadgsoc2013-epiphany-f4f15a082b32eb99b34ff237fef1772e07079045.tar
gsoc2013-epiphany-f4f15a082b32eb99b34ff237fef1772e07079045.tar.gz
gsoc2013-epiphany-f4f15a082b32eb99b34ff237fef1772e07079045.tar.bz2
gsoc2013-epiphany-f4f15a082b32eb99b34ff237fef1772e07079045.tar.lz
gsoc2013-epiphany-f4f15a082b32eb99b34ff237fef1772e07079045.tar.xz
gsoc2013-epiphany-f4f15a082b32eb99b34ff237fef1772e07079045.tar.zst
gsoc2013-epiphany-f4f15a082b32eb99b34ff237fef1772e07079045.zip
Expand initial ~ in file name to print to.
2003-08-15 Christian Persch <chpe@cvs.gnome.org> * embed/print-dialog.c: (print_get_info): Expand initial ~ in file name to print to.
Diffstat (limited to 'embed')
-rwxr-xr-xembed/print-dialog.c3
1 files changed, 2 insertions, 1 deletions
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);