From eadd4a2cb7330834115158707cbe19563b6a705b Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 17 Dec 2006 19:20:50 +0000 Subject: Fix file name extension when exporting bookmarks. Bug #358986, patch by 2006-12-17 Christian Persch * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_export): Fix file name extension when exporting bookmarks. Bug #358986, patch by Diego Escalante Urrelo. --- src/bookmarks/ephy-bookmarks-editor.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/bookmarks') 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:")); -- cgit v1.2.3