[anjuta] symbol-db: Make local view infinite depth expandable.



commit f37f1812c78c582055c86dd06c45efada07f342c
Author: Naba Kumar <naba gnome org>
Date:   Tue Apr 6 22:58:42 2010 +0300

    symbol-db: Make local view infinite depth expandable.

 plugins/symbol-db/symbol-db-model-file.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-model-file.c b/plugins/symbol-db/symbol-db-model-file.c
index 88a05c0..de0c47e 100644
--- a/plugins/symbol-db/symbol-db-model-file.c
+++ b/plugins/symbol-db/symbol-db-model-file.c
@@ -62,7 +62,7 @@ sdb_model_file_get_n_children (SymbolDBModel *model, gint tree_level,
 				(dbe, priv->file_path, -1, -1, SYMINFO_SIMPLE);
 		}
 		break;
-	case 1:
+	default:
 		if (priv->file_path)
 		{
 			symbol_id = g_value_get_int (&column_values[0]); /* fixme: */
@@ -70,9 +70,6 @@ sdb_model_file_get_n_children (SymbolDBModel *model, gint tree_level,
 				(dbe, symbol_id, priv->file_path, -1, -1, SYMINFO_SIMPLE | SYMINFO_FILE_PATH);
 		}
 		break;
-	default:
-		return SYMBOL_DB_MODEL_CLASS (sdb_model_file_parent_class)->
-				get_n_children (model, tree_level, column_values);
 	}
 	if (iter)
 	{
@@ -113,7 +110,7 @@ sdb_model_file_get_children (SymbolDBModel *model, gint tree_level,
 				 SYMINFO_KIND | SYMINFO_FILE_PATH);
 		}
 		break;
-	case 1:
+	default:
 		if (priv->file_path)
 		{
 			symbol_id = g_value_get_int (&column_values[0]); /* fixme: */
@@ -123,9 +120,6 @@ sdb_model_file_get_children (SymbolDBModel *model, gint tree_level,
 				 SYMINFO_FILE_PATH);
 		}
 		break;
-	default:
-		return SYMBOL_DB_MODEL_CLASS (sdb_model_file_parent_class)->
-				get_children (model, tree_level, column_values, offset, limit);
 	}
 	if (iter)
 	{



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