[mutter/meego-1.0: 15/30] [prefs] remove over-restrictive assert from meta_prefs_get_workspace_name()



commit 65df5a80a71cd92879567f77f4892b66b67ee65a
Author: Tomas Frydrych <tf linux intel com>
Date:   Wed Mar 17 10:52:49 2010 +0000

    [prefs] remove over-restrictive assert from meta_prefs_get_workspace_name()
    
    The initial value of the workspace_names array are NULL unless the gconf
    key exists; the absence of a preference key is not a good enought reason to
    abort.

 src/core/prefs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 3435fbb..78ca769 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -2554,8 +2554,6 @@ meta_prefs_get_workspace_name (int i)
 {
   g_return_val_if_fail (i >= 0 && i < MAX_REASONABLE_WORKSPACES, NULL);
 
-  g_assert (workspace_names[i] != NULL);
-
   meta_topic (META_DEBUG_PREFS,
               "Getting workspace name for %d: \"%s\"\n",
               i, workspace_names[i]);



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