]> git.street.me.uk Git - andy/viking.git/commitdiff
Preset filename when exporting a TrwLayer.
authorGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Mon, 3 Sep 2007 16:58:28 +0000 (16:58 +0000)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Mon, 3 Sep 2007 16:58:28 +0000 (16:58 +0000)
ChangeLog
src/viktrwlayer.c

index a0b8398796423d78317338be7d40b17c0f21678f..fc9e3e2bbae8e2c30698eff8ce55c420e1c501b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 Guilhem Bonnefille <guilhem.bonnefille@gmail.com>:
        * Fix: crash when "applying" a map layer property dialog.
        * QA: strong type the second argument of the *_post_read functions.
+       * Preset filename when exporting a TrwLayer.
 
 2007-09-01
 Guilhem Bonnefille <guilhem.bonnefille@gmail.com>:
index 9a423acb6a5109c085d6d4fa4ae48081995a7884..8733b25ba2fb62055b19be35e89a66e98beb404c 100644 (file)
@@ -1473,6 +1473,7 @@ static void trw_layer_export ( gpointer layer_and_vlp[2], guint file_type )
   const gchar *fn;
   gboolean failed = FALSE;
   file_selector = gtk_file_selection_new ("Export Layer");
+  gtk_file_selection_set_filename (GTK_FILE_SELECTION(file_selector), vik_layer_get_name(VIK_LAYER(layer_and_vlp[0])));
 
   while ( gtk_dialog_run ( GTK_DIALOG(file_selector) ) == GTK_RESPONSE_OK )
   {