summary refs log tree commit diff stats
path: root/src/fe-gtk/setup.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-04-14 10:52:34 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-04-14 10:52:34 +0200
commit4e601cf14ceef4f92edfce0b6258f1fc2b13a2e6 (patch)
tree670e761e4dac0d19d3530018d36743ba4a3875c8 /src/fe-gtk/setup.c
parentdb582a4e5c51f8f83c0d952373b691400ff78178 (diff)
Browse into the sounds folder by default
Diffstat (limited to 'src/fe-gtk/setup.c')
-rw-r--r--src/fe-gtk/setup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index 1ab0fec3..e8cca3a7 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -1646,7 +1646,9 @@ setup_snd_filereq_cb (GtkWidget *entry, char *file)
 static void
 setup_snd_browse_cb (GtkWidget *button, GtkEntry *entry)
 {
-	gtkutil_file_req (_("Select a sound file"), setup_snd_filereq_cb, entry, NULL, NULL, 0);
+	char *sounds_dir = g_build_filename (get_xdir (), "sounds", NULL);
+	gtkutil_file_req (_("Select a sound file"), setup_snd_filereq_cb, entry, sounds_dir, NULL, FRF_FILTERISINITIAL);
+	g_free (sounds_dir);
 }
 
 static void