Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
91fe11d2
Commit
91fe11d2
authored
Sep 13, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix in xnav close cb
parent
6e40797b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
xtt/exe/rt_xtt/src/rt_xtt.cpp
xtt/exe/rt_xtt/src/rt_xtt.cpp
+4
-4
xtt/lib/xtt/src/xtt_xnav.h
xtt/lib/xtt/src/xtt_xnav.h
+1
-1
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+6
-6
No files found.
xtt/exe/rt_xtt/src/rt_xtt.cpp
View file @
91fe11d2
...
@@ -380,10 +380,10 @@ static void xtt_close_ok( void *ctx, void *data)
...
@@ -380,10 +380,10 @@ static void xtt_close_ok( void *ctx, void *data)
exit
(
0
);
exit
(
0
);
}
}
static
void
xtt_close
(
void
*
ctx
)
static
void
xtt_close
(
void
*
ctx
,
int
terminate
)
{
{
Xtt
*
xtt
=
(
Xtt
*
)
ctx
;
Xtt
*
xtt
=
(
Xtt
*
)
ctx
;
if
(
!
xtt
->
xnav
->
op
)
{
if
(
terminate
)
{
wow_DisplayQuestion
(
xtt
,
xtt
->
toplevel
,
"Confirm"
,
wow_DisplayQuestion
(
xtt
,
xtt
->
toplevel
,
"Confirm"
,
"Do you want to close"
,
xtt_close_ok
,
0
,
0
);
"Do you want to close"
,
xtt_close_ok
,
0
,
0
);
// delete xtt->xnav;
// delete xtt->xnav;
...
@@ -509,7 +509,7 @@ static void xtt_activate_command( Widget w, Xtt *xtt, XmAnyCallbackStruct *data)
...
@@ -509,7 +509,7 @@ static void xtt_activate_command( Widget w, Xtt *xtt, XmAnyCallbackStruct *data)
static
void
xtt_activate_exit
(
Widget
w
,
Xtt
*
xtt
,
XmAnyCallbackStruct
*
data
)
static
void
xtt_activate_exit
(
Widget
w
,
Xtt
*
xtt
,
XmAnyCallbackStruct
*
data
)
{
{
xtt_close
(
xtt
);
xtt_close
(
xtt
,
xtt
->
xnav
->
op
?
0
:
1
);
}
}
static
void
xtt_activate_print
(
Widget
w
,
Xtt
*
xtt
,
XmAnyCallbackStruct
*
data
)
static
void
xtt_activate_print
(
Widget
w
,
Xtt
*
xtt
,
XmAnyCallbackStruct
*
data
)
...
@@ -1099,7 +1099,7 @@ Xtt::Xtt( int argc, char *argv[], int *return_sts) :
...
@@ -1099,7 +1099,7 @@ Xtt::Xtt( int argc, char *argv[], int *return_sts) :
(
XtCallbackProc
)
xtt_activate_exit
,
this
);
(
XtCallbackProc
)
xtt_activate_exit
,
this
);
if
(
xnav
->
op
)
if
(
xnav
->
op
)
xtt_close
(
this
);
xtt_close
(
this
,
0
);
// Start timer to check for qcom events
// Start timer to check for qcom events
timerid
=
XtAppAddTimeOut
(
timerid
=
XtAppAddTimeOut
(
...
...
xtt/lib/xtt/src/xtt_xnav.h
View file @
91fe11d2
...
@@ -264,7 +264,7 @@ class XNav {
...
@@ -264,7 +264,7 @@ class XNav {
XtIntervalId
trace_timerid
;
XtIntervalId
trace_timerid
;
int
trace_started
;
int
trace_started
;
void
(
*
message_cb
)(
void
*
,
char
,
char
*
);
void
(
*
message_cb
)(
void
*
,
char
,
char
*
);
void
(
*
close_cb
)(
void
*
);
void
(
*
close_cb
)(
void
*
,
int
);
void
(
*
map_cb
)(
void
*
);
void
(
*
map_cb
)(
void
*
);
void
(
*
change_value_cb
)(
void
*
);
void
(
*
change_value_cb
)(
void
*
);
void
(
*
set_dimension_cb
)(
void
*
,
int
,
int
);
void
(
*
set_dimension_cb
)(
void
*
,
int
,
int
);
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
91fe11d2
...
@@ -2744,7 +2744,7 @@ static int xnav_close_func( void *client_data,
...
@@ -2744,7 +2744,7 @@ static int xnav_close_func( void *client_data,
else
if
(
strncmp
(
arg1_str
,
"NAVIGATOR"
,
strlen
(
arg1_str
))
==
0
)
else
if
(
strncmp
(
arg1_str
,
"NAVIGATOR"
,
strlen
(
arg1_str
))
==
0
)
{
{
if
(
xnav
->
close_cb
)
if
(
xnav
->
close_cb
)
(
xnav
->
close_cb
)(
xnav
->
parent_ctx
);
(
xnav
->
close_cb
)(
xnav
->
parent_ctx
,
xnav
->
op
?
0
:
1
);
}
}
else
if
(
strncmp
(
arg1_str
,
"ALL"
,
strlen
(
arg1_str
))
==
0
)
else
if
(
strncmp
(
arg1_str
,
"ALL"
,
strlen
(
arg1_str
))
==
0
)
{
{
...
@@ -2829,7 +2829,7 @@ static int xnav_close_func( void *client_data,
...
@@ -2829,7 +2829,7 @@ static int xnav_close_func( void *client_data,
}
}
if
(
!
keep
)
{
if
(
!
keep
)
{
if
(
xnav
->
close_cb
)
if
(
xnav
->
close_cb
)
(
xnav
->
close_cb
)(
xnav
->
parent_ctx
);
(
xnav
->
close_cb
)(
xnav
->
parent_ctx
,
0
);
}
}
// Close alarmlist
// Close alarmlist
...
@@ -3355,7 +3355,7 @@ static int xnav_exit_func( void *client_data,
...
@@ -3355,7 +3355,7 @@ static int xnav_exit_func( void *client_data,
XNav
*
xnav
=
(
XNav
*
)
client_data
;
XNav
*
xnav
=
(
XNav
*
)
client_data
;
if
(
xnav
->
close_cb
)
if
(
xnav
->
close_cb
)
(
xnav
->
close_cb
)(
xnav
->
parent_ctx
);
(
xnav
->
close_cb
)(
xnav
->
parent_ctx
,
xnav
->
op
?
0
:
1
);
else
else
exit
(
1
);
exit
(
1
);
return
1
;
return
1
;
...
@@ -5383,10 +5383,10 @@ static void xnav_op_map_cb( void *ctx)
...
@@ -5383,10 +5383,10 @@ static void xnav_op_map_cb( void *ctx)
static
void
xnav_op_close_cb
(
void
*
ctx
)
static
void
xnav_op_close_cb
(
void
*
ctx
)
{
{
XNav
*
xnav
=
(
XNav
*
)
ctx
;
XNav
*
xnav
=
(
XNav
*
)
ctx
;
delete
xnav
->
op
;
//
delete xnav->op;
xnav
->
op
=
0
;
//
xnav->op = 0;
if
(
xnav
->
close_cb
)
if
(
xnav
->
close_cb
)
(
xnav
->
close_cb
)(
xnav
->
parent_ctx
);
(
xnav
->
close_cb
)(
xnav
->
parent_ctx
,
1
);
}
}
static
void
xnav_op_help_cb
(
void
*
ctx
,
char
*
key
)
static
void
xnav_op_help_cb
(
void
*
ctx
,
char
*
key
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment