SF.net SVN: geany:[3187] trunk/src/dialogs.c

eht16 at users.sourceforge.net eht16 at xxxxx
Fri Nov 7 14:38:14 UTC 2008


Revision: 3187
          http://geany.svn.sourceforge.net/geany/?rev=3187&view=rev
Author:   eht16
Date:     2008-11-07 14:38:13 +0000 (Fri, 07 Nov 2008)

Log Message:
-----------
Allow showing remote locations in the file open dialog with GTK >= 2.14 since it works with Gvfs/FUSE mounts, too.

Modified Paths:
--------------
    trunk/src/dialogs.c

Modified: trunk/src/dialogs.c
===================================================================
--- trunk/src/dialogs.c	2008-11-07 14:37:57 UTC (rev 3186)
+++ trunk/src/dialogs.c	2008-11-07 14:38:13 UTC (rev 3187)
@@ -196,6 +196,9 @@
 	gtk_window_set_type_hint(GTK_WINDOW(ui_widgets.open_filesel), GDK_WINDOW_TYPE_HINT_DIALOG);
 	gtk_window_set_transient_for(GTK_WINDOW(ui_widgets.open_filesel), GTK_WINDOW(main_widgets.window));
 	gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(ui_widgets.open_filesel), TRUE);
+#if GTK_CHECK_VERSION(2, 14, 0)
+	gtk_file_chooser_set_local_only(GTK_FILE_CHOOSER(ui_widgets.open_filesel), FALSE);
+#endif
 
 	/* add checkboxes and filename entry */
 	gtk_file_chooser_set_extra_widget(GTK_FILE_CHOOSER(ui_widgets.open_filesel),


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list