[gnome-control-center] background: Don't assert() for typos in XML files



commit e46c3267baf2cedb2006490bc97a9dfe61913055
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Mar 30 18:36:03 2011 +0100

    background: Don't assert() for typos in XML files
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646250

 panels/background/cc-background-xml.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/cc-background-xml.c b/panels/background/cc-background-xml.c
index 9f7a74b..c5c7134 100644
--- a/panels/background/cc-background-xml.c
+++ b/panels/background/cc-background-xml.c
@@ -106,7 +106,7 @@ enum_string_to_value (GType type,
 		}
 		g_warning ("Unhandled value '%s' for enum '%s'",
 			   string, G_FLAGS_CLASS_TYPE_NAME (eclass));
-		g_assert_not_reached ();
+		return 0;
 	}
 
 	return value->value;



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