aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-12-18 03:20:50 +0800
committerChristian Persch <chpe@src.gnome.org>2006-12-18 03:20:50 +0800
commiteadd4a2cb7330834115158707cbe19563b6a705b (patch)
treea9a8bf9d97e929f635f4fb0e425de39738eee70e /src/bookmarks
parent33b81fc6775af261ecc5ae50034a9a9307905f09 (diff)
downloadgsoc2013-epiphany-eadd4a2cb7330834115158707cbe19563b6a705b.tar
gsoc2013-epiphany-eadd4a2cb7330834115158707cbe19563b6a705b.tar.gz
gsoc2013-epiphany-eadd4a2cb7330834115158707cbe19563b6a705b.tar.bz2
gsoc2013-epiphany-eadd4a2cb7330834115158707cbe19563b6a705b.tar.lz
gsoc2013-epiphany-eadd4a2cb7330834115158707cbe19563b6a705b.tar.xz
gsoc2013-epiphany-eadd4a2cb7330834115158707cbe19563b6a705b.tar.zst
gsoc2013-epiphany-eadd4a2cb7330834115158707cbe19563b6a705b.zip
Fix file name extension when exporting bookmarks. Bug #358986, patch by
2006-12-17 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_export): Fix file name extension when exporting bookmarks. Bug #358986, patch by Diego Escalante Urrelo.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 70c659612..5d637c080 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -901,6 +901,7 @@ cmd_bookmarks_export (GtkAction *action,
{
GtkWidget *dialog, *hbox, *label, *combo;
int format;
+ char *filename;
dialog = GTK_WIDGET (ephy_file_chooser_new (_("Export Bookmarks"),
GTK_WIDGET (editor),
@@ -912,9 +913,11 @@ cmd_bookmarks_export (GtkAction *action,
gtk_file_chooser_set_current_folder
(GTK_FILE_CHOOSER (dialog), g_get_home_dir ());
-
+
+ filename = g_strdup_printf ("%s.%s", _("Bookmarks"), export_formats[0].extension);
gtk_file_chooser_set_current_name
- (GTK_FILE_CHOOSER (dialog), _("Bookmarks"));
+ (GTK_FILE_CHOOSER (dialog), filename);
+ g_free(filename);
/* Make a format selection combo & label */
label = gtk_label_new_with_mnemonic (_("File f_ormat:"));