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
2992de99
Commit
2992de99
authored
19 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
more stuff
parent
00a508aa
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/zmapWindowEditor.c
+28
-3
28 additions, 3 deletions
src/zmapWindow/zmapWindowEditor.c
with
28 additions
and
3 deletions
src/zmapWindow/zmapWindowEditor.c
+
28
−
3
View file @
2992de99
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See ZMap/zmapWindow.h
* HISTORY:
* Last edited: Oct
5
1
4:22
2005 (rds)
* Last edited: Oct
6
1
7:58
2005 (rds)
* Created: Mon Jun 6 13:00:00 (rnc)
* CVS info: $Id: zmapWindowEditor.c,v 1.1
5
2005-10-0
5
1
3
:55:
4
2 rds Exp $
* CVS info: $Id: zmapWindowEditor.c,v 1.1
6
2005-10-0
7
1
0
:55:
5
2 rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -228,7 +228,20 @@ ZMapWindowEditor zmapWindowEditorCreate(ZMapWindow zmapWindow, FooCanvasItem *it
editor
->
table
=
g_new0
(
mainTableStruct
,
16
);
editor
->
appliedChanges
=
NULL
;
editor
->
wcopyFeature
=
zMapFeatureCopy
(
editor
->
origFeature
);
editor
->
editable
=
TRUE
;
switch
(
editor
->
origFeature
->
type
)
{
case
ZMAPFEATURE_HOMOL
:
editor
->
editable
=
FALSE
;
break
;
case
ZMAPFEATURE_TRANSCRIPT
:
editor
->
editable
=
TRUE
;
break
;
default:
editor
->
editable
=
FALSE
;
break
;
}
parseFeature
(
editor
->
table
,
editor
->
origFeature
,
editor
->
wcopyFeature
);
{
...
...
@@ -881,6 +894,8 @@ static void cellEditedCB(GtkCellRendererText *renderer,
treeModel
=
gtk_tree_view_get_model
(
GTK_TREE_VIEW
(
editor
->
view
));
/* Find where we are. bizarrely enough we don't actually know yet. */
gtk_tree_view_get_cursor
(
GTK_TREE_VIEW
(
editor
->
view
),
&
cursor_path
,
&
column
);
if
(
!
cursor_path
||
!
column
)
return
;
/* We can't continue without these */
gtk_tree_model_get_iter
(
GTK_TREE_MODEL
(
treeModel
),
&
iter
,
cursor_path
);
gtk_tree_path_free
(
cursor_path
);
/* We need to free this, do it now */
/* zmapWindowFeatureListGetColNumberFromTVC(column) would work too. */
...
...
@@ -902,7 +917,17 @@ static void cellEditedCB(GtkCellRendererText *renderer,
colNumber
,
new_text
,
-
1
);
break
;
case
G_TYPE_FLOAT
:
{
double
value
=
0
.
0
;
if
((
zMapStr2Double
(
new_text
,
&
value
)))
gtk_tree_store_set
(
GTK_TREE_STORE
(
treeModel
),
&
iter
,
colNumber
,
value
,
-
1
);
}
break
;
default:
printf
(
"Don't know how to edit this kind of column
\n
"
);
break
;
}
...
...
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