Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
56afbeb3
Commit
56afbeb3
authored
19 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
keeping up with changes in FeatureList
parent
b1c059be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowList.c
+9
-8
9 additions, 8 deletions
src/zmapWindow/zmapWindowList.c
with
9 additions
and
8 deletions
src/zmapWindow/zmapWindowList.c
+
9
−
8
View file @
56afbeb3
...
...
@@ -27,9 +27,9 @@
*
* Exported functions:
* HISTORY:
* Last edited: Sep 2
7
1
5:16
2005 (rds)
* Last edited: Sep 2
9
1
0:59
2005 (rds)
* Created: Thu Sep 16 10:17 2004 (rnc)
* CVS info: $Id: zmapWindowList.c,v 1.3
8
2005-09-2
8 08:08:27
rds Exp $
* CVS info: $Id: zmapWindowList.c,v 1.3
9
2005-09-2
9 13:23:06
rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -41,9 +41,6 @@
/* ZMapWindowListStruct structure declaration
*
* Used to pass a couple of variables and a GtkTreeStore list
* of feature details through the g_datalist_foreach() call
* and into the addFeatureToStore() function where the list is loaded.
*/
typedef
struct
_ZMapWindowListStruct
{
...
...
@@ -194,7 +191,7 @@ static void populateStore(ZMapWindowList windowList, GtkTreeModel *treeModel)
{
/* This needs setting here so we can draw it later. */
windowList
->
title
=
zMapFeatureSetGetName
(
feature_set
)
;
zmapWindowFeatureListPopulateStore
(
treeModel
,
windowList
->
zmapWindow
,
windowList
->
strand
,
feature_sets
);
zmapWindowFeatureListPopulateStore
DataList
(
treeModel
,
windowList
->
zmapWindow
,
windowList
->
strand
,
feature_sets
);
}
return
;
...
...
@@ -328,13 +325,17 @@ static void columnClickedCB(GtkTreeViewColumn *col, gpointer user_data)
ZMapWindowList
windowList
=
(
ZMapWindowList
)
user_data
;
GtkTreeModel
*
model
=
NULL
;
int
sortable_id
=
0
,
column_id
=
0
;
GtkSortType
order
=
0
;
GtkSortType
order
=
0
,
neworder
;
model
=
gtk_tree_view_get_model
(
GTK_TREE_VIEW
(
windowList
->
view
));
column_id
=
gtk_tree_view_column_get_sort_column_id
(
col
);
gtk_tree_sortable_get_sort_column_id
(
GTK_TREE_SORTABLE
(
model
),
&
sortable_id
,
&
order
);
printf
(
"Well on the way to sorting columns %d, %d by order %d
\n
"
,
column_id
,
sortable_id
,
order
);
neworder
=
(
order
==
GTK_SORT_ASCENDING
)
?
GTK_SORT_DESCENDING
:
GTK_SORT_ASCENDING
;
/* The sort indicator looks wrong to me, points up on descending numbers down the list??? */
/* gtk_tree_view_column_set_sort_order (col, order); doesn't alter anything*/
/* gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), sortable_id, order); breaks sorting, */
printf
(
"Well on the way to sorting columns %d, %d by order %d, neworder %d
\n
"
,
column_id
,
sortable_id
,
order
,
neworder
);
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment