Comment 11 for bug 251122

Revision history for this message
Jiahua Huang (huangjiahua) wrote :

I'm unhappy that switching to the ugly and gtk file selection dialog.
I prefer to err on the recently-used func.

This patch overwrited the g_bookmark_file_to_file() func to fixed the considerable I/O problem,
and switching to the new-style gtk_file_chooser_dialog.

It works on my Ubuntu 9.04.

--- vim-7.2.079/src/gui_gtk.c 2009-04-26 13:06:52 +0000
+++ vim-7.2.079/src/gui_gtk.c 2009-04-26 18:57:06 +0000
@@ -1199,8 +1199,17 @@
  * ~/.recently-used.xbel every time the main loop is quit. For Vim that means
  * on just about any event. */
 /* # define USE_FILE_CHOOSER */
+#define USE_FILE_CHOOSER 1
 #endif

+extern gboolean
+g_bookmark_file_to_file (GBookmarkFile *bookmark,
+ const gchar *filename,
+ GError **error)
+{
+ return TRUE;
+}
+
 #ifndef USE_FILE_CHOOSER
 /*ARGSUSED*/
     static void