Commit 7ec88ead authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Handle ui file load error better. Patch from Tom Parker

2007-01-11  Alexander Larsson  <alexl@redhat.com>

        * libnautilus-private/nautilus-ui-utilities.c:
        (nautilus_ui_string_get):
	Handle ui file load error better.
	Patch from Tom Parker


svn path=/trunk/; revision=12689
parent d586ea81
2007-01-11 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-ui-utilities.c:
(nautilus_ui_string_get):
Handle ui file load error better.
Patch from Tom Parker
2006-12-31 Martin Wehner <martin.wehner@gmail.com>
Add svn:externals property to include libbackground from trunk.
......
......@@ -94,7 +94,7 @@ nautilus_ui_string_get (const char *filename)
ui = g_hash_table_lookup (ui_cache, filename);
if (ui == NULL) {
path = nautilus_ui_file (filename);
if (!g_file_get_contents (path, &ui, NULL, NULL)) {
if (path == NULL || !g_file_get_contents (path, &ui, NULL, NULL)) {
g_warning ("Unable to load ui file %s\n", filename);
}
g_free (path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment