anjuta r3825 - in trunk: . plugins/symbol-db
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3825 - in trunk: . plugins/symbol-db
- Date: Mon, 7 Apr 2008 15:02:58 +0100 (BST)
Author: jhs
Date: Mon Apr 7 15:02:58 2008
New Revision: 3825
URL: http://svn.gnome.org/viewvc/anjuta?rev=3825&view=rev
Log:
2008-04-07 Johannes Schmid <jhs gnome org>
* plugins/symbol-db/symbol-db-view-locals.c
(sdb_view_locals_create_new_store):
* plugins/symbol-db/symbol-db-view-search.c (sdb_view_search_init):
* plugins/symbol-db/symbol-db-view.c (sdb_view_create_new_store),
(symbol_db_view_open):
Sort symbol trees
Modified:
trunk/ChangeLog
trunk/plugins/symbol-db/symbol-db-view-locals.c
trunk/plugins/symbol-db/symbol-db-view-search.c
trunk/plugins/symbol-db/symbol-db-view.c
Modified: trunk/plugins/symbol-db/symbol-db-view-locals.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-view-locals.c (original)
+++ trunk/plugins/symbol-db/symbol-db-view-locals.c Mon Apr 7 15:02:58 2008
@@ -135,6 +135,9 @@
GtkTreeStore *store;
store = gtk_tree_store_new (COLUMN_MAX, GDK_TYPE_PIXBUF,
G_TYPE_STRING, G_TYPE_INT);
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (store),
+ COLUMN_NAME,
+ GTK_SORT_ASCENDING);
return store;
}
Modified: trunk/plugins/symbol-db/symbol-db-view-search.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-view-search.c (original)
+++ trunk/plugins/symbol-db/symbol-db-view-search.c Mon Apr 7 15:02:58 2008
@@ -429,6 +429,9 @@
priv->model = GTK_TREE_MODEL (gtk_tree_store_new (COLUMN_MAX, GDK_TYPE_PIXBUF,
G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT));
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (priv->model),
+ COLUMN_NAME,
+ GTK_SORT_ASCENDING);
gtk_tree_view_set_model (GTK_TREE_VIEW (priv->hitlist), GTK_TREE_MODEL (priv->model));
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (priv->hitlist), FALSE);
Modified: trunk/plugins/symbol-db/symbol-db-view.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-view.c (original)
+++ trunk/plugins/symbol-db/symbol-db-view.c Mon Apr 7 15:02:58 2008
@@ -1364,11 +1364,14 @@
}
static GtkTreeStore *
-sdb_view_locals_create_new_store ()
+sdb_view_create_new_store ()
{
GtkTreeStore *store;
store = gtk_tree_store_new (COLUMN_MAX, GDK_TYPE_PIXBUF,
- G_TYPE_STRING, G_TYPE_INT);
+ G_TYPE_STRING, G_TYPE_INT);
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (store),
+ COLUMN_NAME,
+ GTK_SORT_ASCENDING);
return store;
}
@@ -1829,7 +1832,7 @@
DEBUG_PRINT ("symbol_db_view_open ()");
symbol_db_view_clear_cache (dbv);
- store = sdb_view_locals_create_new_store ();
+ store = sdb_view_create_new_store ();
gtk_tree_view_set_model (GTK_TREE_VIEW (dbv), GTK_TREE_MODEL (store));
priv->nodes_displayed = g_tree_new_full ((GCompareDataFunc)>ree_compare_func,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]