libgnomeui r5595 - in trunk: . file-chooser



Author: carlosg
Date: Fri Apr  4 19:42:47 2008
New Revision: 5595
URL: http://svn.gnome.org/viewvc/libgnomeui?rev=5595&view=rev

Log:
2008-04-04  Carlos Garnacho  <carlos imendio com>

        * file-chooser/gtkfilesystemgio.c (read_bookmarks_file): Be more
        permissive if the .gtk-bookmarks file can't be opened, it's not
        critical error worthy at all. Fixes #523003



Modified:
   trunk/ChangeLog
   trunk/file-chooser/gtkfilesystemgio.c

Modified: trunk/file-chooser/gtkfilesystemgio.c
==============================================================================
--- trunk/file-chooser/gtkfilesystemgio.c	(original)
+++ trunk/file-chooser/gtkfilesystemgio.c	Fri Apr  4 19:42:47 2008
@@ -1552,16 +1552,8 @@
   g_free (filename);
 
   if (!g_file_load_contents (file, NULL, &contents,
-			     NULL, NULL, &error))
-    {
-      if (error)
-	{
-	  g_critical (error->message);
-	  g_error_free (error);
-	}
-
-      return NULL;
-    }
+			     NULL, NULL, NULL))
+    return NULL;
 
   lines = g_strsplit (contents, "\n", -1);
 



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