diff options
author | TingPing <tingping@tingping.se> | 2013-08-30 20:19:10 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-08-31 11:39:12 -0400 |
commit | 4c406bce171db7086e394f69ae3cddd3b4dc8a87 (patch) | |
tree | 7b4d36f441474cdb002d41caad97e6b8ede2ae45 /src/fe-gtk/fe-gtk.c | |
parent | 36b84c9af321effa39a06a2b137f094ab8c50bd8 (diff) |
Improve file dialogs
- Fixes #314 - Adds file extensions to sound and image browsing - Some options no longer default to our config dir - Always add a shortcut to our config dir - Remove broken 'last_dir' functionality, gtk already knows recent
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index acba80a5..3469569e 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -908,10 +908,15 @@ fe_confirm (const char *message, void (*yesproc)(void *), void (*noproc)(void *) { /* warning, assuming fe_confirm is used by DCC only! */ struct DCC *dcc = ud; + char *filepath; if (dcc->file) - gtkutil_file_req (message, dcc_saveas_cb, ud, dcc->file, NULL, - FRF_WRITE|FRF_NOASKOVERWRITE); + { + filepath = g_build_filename (prefs.hex_dcc_dir, dcc->file, NULL); + gtkutil_file_req (message, dcc_saveas_cb, ud, filepath, NULL, + FRF_WRITE|FRF_NOASKOVERWRITE|FRF_FILTERISINITIAL); + g_free (filepath); + } } int |