changeset 4885:c058fc4d6968

should not use gtk_file_chooser_set_filename() if file does not exist
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 16 Sep 2009 20:04:27 +0900
parents f1fc1d973f27
children 54b4f7aaca24
files src/audlegacy/legacy/ui_equalizer.c src/audlegacy/legacy/ui_playlist.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audlegacy/legacy/ui_equalizer.c	Mon Jun 22 14:53:31 2009 +0900
+++ b/src/audlegacy/legacy/ui_equalizer.c	Wed Sep 16 20:04:27 2009 +0900
@@ -1265,7 +1265,7 @@
         gchar *eqname = g_strdup_printf("%s.%s", songname,
                                         cfg.eqpreset_extension);
         g_free(songname);
-        gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog),
+        gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog),
                                       eqname);
         g_free(eqname);
     }
--- a/src/audlegacy/legacy/ui_playlist.c	Mon Jun 22 14:53:31 2009 +0900
+++ b/src/audlegacy/legacy/ui_playlist.c	Wed Sep 16 20:04:27 2009 +0900
@@ -831,7 +831,7 @@
     dialog = make_filebrowser(title, FALSE);
     gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), cfg.playlist_path);
     if (default_filename)
-        gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), default_filename);
+        gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), default_filename);
     gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); /* centering */
 
     if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)
@@ -878,7 +878,7 @@
 
     dialog = make_filebrowser(title, TRUE);
     gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), cfg.playlist_path);
-    gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), default_filename);
+    gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), default_filename);
 
     hbox = gtk_hbox_new(FALSE, 5);