gnome-terminal r3375 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r3375 - trunk/src
- Date: Thu, 19 Mar 2009 13:48:31 +0000 (UTC)
Author: chpe
Date: Thu Mar 19 13:48:31 2009
New Revision: 3375
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3375&view=rev
Log:
Don't start the background file chooser in /, use /home/chpe instead
Modified:
trunk/src/profile-editor.c
Modified: trunk/src/profile-editor.c
==============================================================================
--- trunk/src/profile-editor.c (original)
+++ trunk/src/profile-editor.c Thu Mar 19 13:48:31 2009
@@ -606,7 +606,8 @@
TerminalProfile *profile)
{
GtkFileFilter *filter;
-
+ const char *home_dir;
+
filter = gtk_file_filter_new ();
gtk_file_filter_add_pixbuf_formats (filter);
gtk_file_filter_set_name (filter, _("Images"));
@@ -614,6 +615,11 @@
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (filechooser), TRUE);
+ /* Start filechooser in $HOME instead of the current dir of the factory which is "/" */
+ home_dir = g_get_home_dir ();
+ if (home_dir)
+ gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (filechooser), home_dir);
+
#if 0
GtkWidget *image_preview;
GdkPixbuf *pixbuf = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]