Bram,
this patch works around a GTK bug, that is mentioned here:

https://bugzilla.gnome.org/show_bug.cgi?id=662814

which happens, if you use the file open/save dialog and select a 
non-existent file, on the terminal, something like this will be written:
(vim:3202): Gtk-WARNING **: Unable to retrieve the file info for 
`file:///tmp/foobar': Error stating file '/tmp/foobar': No such file or 
directory

I went ahead and used the workaround provided in this git commit:
http://git.gnome.org/browse/goffice/commit/?id=d30d43c7d84a3a9ce75b93cd4dfa12a6bc4a868f

to work around this issue.

regards,
Christian
-- 
Glauben heißt auf etwas zu vertrauen, von dem du weißt, daß es nicht
existiert.
                -- Mark Twain (eigl. Samuel Langhorne Clemens)

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff --git a/src/gui_gtk.c b/src/gui_gtk.c
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -90,6 +90,10 @@
 static void entry_activate_cb(GtkWidget *widget, gpointer data);
 static void entry_changed_cb(GtkWidget *entry, GtkWidget *dialog);
 static void find_replace_cb(GtkWidget *widget, gpointer data);
+static void recent_func_log_func (G_GNUC_UNUSED const gchar   *log_domain,
+		      G_GNUC_UNUSED GLogLevelFlags log_level,
+		      G_GNUC_UNUSED const gchar   *message,
+		      G_GNUC_UNUSED gpointer       user_data);
 
 #if defined(FEAT_TOOLBAR)
 /*
@@ -839,7 +843,8 @@
     GtkWidget		*fc;
 #endif
     char_u		dirbuf[MAXPATHL];
-
+    guint		log_handler;
+    const gchar *domain = "Gtk";
     title = CONVERT_TO_UTF8(title);
 
     /* GTK has a bug, it only works with an absolute path. */
@@ -853,6 +858,11 @@
     /* If our pointer is currently hidden, then we should show it. */
     gui_mch_mousehide(FALSE);
 
+    /* Hack: the gtk file dialog warns when it can't access a new file, so shut it up.  */
+    /* http://bugzilla.gnome.org/show_bug.cgi?id=664587 */
+    log_handler = g_log_set_handler (domain, G_LOG_LEVEL_WARNING,
+				    recent_func_log_func, NULL);
+
 #ifdef USE_FILE_CHOOSER
     /* We create the dialog each time, so that the button text can be "Open"
      * or "Save" according to the action. */
@@ -916,6 +926,7 @@
     gtk_widget_show(gui.filedlg);
     gtk_main();
 #endif
+    g_log_remove_handler (domain, log_handler);
 
     CONVERT_TO_UTF8_FREE(title);
     if (gui.browse_fname == NULL)
@@ -1882,3 +1893,14 @@
      * backwards compatibility anyway. */
     do_cmdline_cmd((char_u *)"emenu ToolBar.FindHelp");
 }
+
+static void
+recent_func_log_func (G_GNUC_UNUSED const gchar   *log_domain,
+		      G_GNUC_UNUSED GLogLevelFlags log_level,
+		      G_GNUC_UNUSED const gchar   *message,
+		      G_GNUC_UNUSED gpointer       user_data)
+{
+	/* We just want to suppress the warnings */
+	/* http://bugzilla.gnome.org/show_bug.cgi?id=664587 */
+}
+

Raspunde prin e-mail lui