[gnome-control-center] background: Fix comparisons of gradients



commit e4efd61cfecebe37d744be1f4a126021b54dfe15
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 14 19:49:07 2011 +0000

    background: Fix comparisons of gradients

 panels/background/cc-background-item.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-item.c b/panels/background/cc-background-item.c
index 24615c3..df7d41e 100644
--- a/panels/background/cc-background-item.c
+++ b/panels/background/cc-background-item.c
@@ -857,6 +857,10 @@ files_equal (const char *a,
 	GFile *file1, *file2;
 	gboolean retval;
 
+	if (a == NULL &&
+	    b == NULL)
+		return TRUE;
+
 	if (a == NULL ||
 	    b == NULL)
 		return FALSE;



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