gnome-control-center r9056 - trunk/capplets/sound



Author: hadess
Date: Fri Oct 10 09:17:52 2008
New Revision: 9056
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9056&view=rev

Log:
2008-10-10  Bastien Nocera  <hadess hadess net>

	* Makefile.am:
	* sound-theme.c (get_sound_filename): Simple patch to make
	the filechooser default to a sensible directory



Modified:
   trunk/capplets/sound/ChangeLog
   trunk/capplets/sound/Makefile.am
   trunk/capplets/sound/sound-theme.c

Modified: trunk/capplets/sound/Makefile.am
==============================================================================
--- trunk/capplets/sound/Makefile.am	(original)
+++ trunk/capplets/sound/Makefile.am	Fri Oct 10 09:17:52 2008
@@ -25,6 +25,7 @@
 	$(HAL_CFLAGS) \
 	-DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
 	-DGNOMECC_DATA_DIR="\"$(pkgdatadir)\"" \
+	-DSOUND_DATA_DIR="\"$(datadir)/sounds\"" \
 	-DGNOMECC_GLADE_DIR="\"$(pkgdatadir)/glade\""
 
 @INTLTOOL_DESKTOP_RULE@

Modified: trunk/capplets/sound/sound-theme.c
==============================================================================
--- trunk/capplets/sound/sound-theme.c	(original)
+++ trunk/capplets/sound/sound-theme.c	Fri Oct 10 09:17:52 2008
@@ -509,6 +509,8 @@
 	if (data_dir != NULL)
 		gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), data_dir, NULL);
 
+	gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (chooser), SOUND_DATA_DIR);
+
 	response = gtk_dialog_run (GTK_DIALOG (chooser));
 	filename = NULL;
 	if (response == GTK_RESPONSE_ACCEPT)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]