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
38d7d851
Commit
38d7d851
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
change code to handle a feature context returned by threads.
parent
c5e284ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/zmapWindow/zmapWindow.c
+16
-10
16 additions, 10 deletions
src/zmapWindow/zmapWindow.c
src/zmapWindow/zmapWindow_P.h
+8
-3
8 additions, 3 deletions
src/zmapWindow/zmapWindow_P.h
with
24 additions
and
13 deletions
src/zmapWindow/zmapWindow.c
+
16
−
10
View file @
38d7d851
...
...
@@ -28,9 +28,9 @@
*
* Exported functions: See ZMap/zmapWindow.h
* HISTORY:
* Last edited: Jun 2
2 09:57
2004 (edgrif)
* Last edited: Jun 2
5 14:28
2004 (edgrif)
* Created: Thu Jul 24 14:36:27 2003 (edgrif)
* CVS info: $Id: zmapWindow.c,v 1.
9
2004-06-2
2
1
2:25:48
edgrif Exp $
* CVS info: $Id: zmapWindow.c,v 1.
10
2004-06-2
5
1
3:42:26
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -163,7 +163,7 @@ static void dataEventCB(GtkWidget *widget, GdkEventClient *event, gpointer cb_da
zmapWindowData
window_data
=
NULL
;
ZMapWindow
window
=
NULL
;
gpointer
data
=
NULL
;
ZMapFeatureContext
feature_context
;
/* Retrieve the data pointer from the event struct */
memmove
(
&
window_data
,
&
(
event
->
data
.
b
[
0
]),
sizeof
(
void
*
))
;
...
...
@@ -173,16 +173,22 @@ static void dataEventCB(GtkWidget *widget, GdkEventClient *event, gpointer cb_da
data
=
(
gpointer
)(
window_data
->
data
)
;
/* OK, can ignore data here and just call my dummied up GFF routine to deliver some
* features for Rob to draw..... */
{
GData
*
features
;
/* Can either get data from my dummied up GFF routine or if you set up an acedb server
* you can get data from there.... just undef the one you want... */
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
feature_context
=
testGetGFF
()
;
/* Data read from a file... */
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
feature_context
=
(
ZMapFeatureContext
)
data
;
/* Data from a server... */
/* ****Remember that someone needs to free the data passed over....**** */
/* <<<<<<<<<<<<< ROB, this is where calls to your drawing code need to go >>>>>>>>>>>> */
features
=
testGetGFF
()
;
}
/* Remember that someone needs to free the data passed over.... */
g_free
(
window_data
)
;
/* Free the WindowData struct. */
...
...
This diff is collapsed.
Click to expand it.
src/zmapWindow/zmapWindow_P.h
+
8
−
3
View file @
38d7d851
...
...
@@ -26,9 +26,9 @@
* Description:
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Jun 2
2 09:57
2004 (edgrif)
* Last edited: Jun 2
5 12:11
2004 (edgrif)
* Created: Fri Aug 1 16:45:58 2003 (edgrif)
* CVS info: $Id: zmapWindow_P.h,v 1.
6
2004-06-2
2
1
2:25:49
edgrif Exp $
* CVS info: $Id: zmapWindow_P.h,v 1.
7
2004-06-2
5
1
3:42:26
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_WINDOW_P_H
...
...
@@ -37,6 +37,11 @@
#include
<gtk/gtk.h>
#include
<ZMap/zmapWindow.h>
/* Test scaffoling */
#include
<ZMap/zmapFeature.h>
typedef
struct
_ZMapWindowStruct
{
gchar
*
sequence
;
...
...
@@ -75,7 +80,7 @@ GtkWidget *zmapWindowMakeFrame(ZMapWindow window) ;
/* TEST SCAFFOLDING............... */
GData
*
testGetGFF
(
void
)
;
ZMapFeatureContext
testGetGFF
(
void
)
;
...
...
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