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
a6fae84a
Commit
a6fae84a
authored
Nov 20, 2019
by
Claes Sjöfors
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master'
parents
c8c63f47
b9788cab
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
xtt/lib/glow/gtk/glow_draw_gtk.cpp
xtt/lib/glow/gtk/glow_draw_gtk.cpp
+5
-0
xtt/lib/glow/src/glow_growwindow.cpp
xtt/lib/glow/src/glow_growwindow.cpp
+6
-2
xtt/lib/glow/src/glow_growwindow.h
xtt/lib/glow/src/glow_growwindow.h
+1
-1
No files found.
xtt/lib/glow/gtk/glow_draw_gtk.cpp
View file @
a6fae84a
...
@@ -2754,9 +2754,14 @@ void GlowDrawGtk::pop_customcolors()
...
@@ -2754,9 +2754,14 @@ void GlowDrawGtk::pop_customcolors()
{
{
if
(
customcolors_cnt
<=
0
)
{
if
(
customcolors_cnt
<=
0
)
{
printf
(
"** Customcolor stack disorder
\n
"
);
printf
(
"** Customcolor stack disorder
\n
"
);
return
;
}
}
for
(
int
i
=
0
;
i
<
customcolors_cnt
-
1
;
i
++
)
for
(
int
i
=
0
;
i
<
customcolors_cnt
-
1
;
i
++
)
{
customcolors
[
i
]
=
customcolors
[
i
+
1
];
customcolors
[
i
]
=
customcolors
[
i
+
1
];
customcolors
[
i
+
1
]
=
NULL
;
}
customcolors_cnt
--
;
customcolors_cnt
--
;
}
}
...
...
xtt/lib/glow/src/glow_growwindow.cpp
View file @
a6fae84a
...
@@ -707,12 +707,13 @@ int GrowWindow::update_attributes()
...
@@ -707,12 +707,13 @@ int GrowWindow::update_attributes()
if
(
window_ctx
)
{
if
(
window_ctx
)
{
if
(
window_ctx
->
trace_started
)
if
(
window_ctx
->
trace_started
)
window_ctx
->
trace_close
();
window_ctx
->
trace_close
();
ctx
->
gdraw
->
pop_customcolors
();
delete
window_ctx
;
delete
window_ctx
;
fill_drawtype
=
original_fill_drawtype
=
glow_eDrawType_Inherit
;
fill_drawtype
=
original_fill_drawtype
=
glow_eDrawType_Inherit
;
fill
=
0
;
fill
=
0
;
}
}
strcpy
(
file_name
,
input_file_name
);
strcpy
(
file_name
,
input_file_name
);
new_ctx
();
new_ctx
(
true
);
sts
=
1
;
sts
=
1
;
ctx
->
gdraw
->
reset_clip_rectangle
(
ctx
->
mw
.
window
);
ctx
->
gdraw
->
reset_clip_rectangle
(
ctx
->
mw
.
window
);
...
@@ -843,7 +844,7 @@ void GrowWindow::h_value_changed_cb(void* o, double value)
...
@@ -843,7 +844,7 @@ void GrowWindow::h_value_changed_cb(void* o, double value)
}
}
}
}
void
GrowWindow
::
new_ctx
()
void
GrowWindow
::
new_ctx
(
bool
is_updating_attributes
)
{
{
char
fname
[
200
];
char
fname
[
200
];
int
sts
;
int
sts
;
...
@@ -899,6 +900,9 @@ void GrowWindow::new_ctx()
...
@@ -899,6 +900,9 @@ void GrowWindow::new_ctx()
strcpy
(
window_ctx
->
owner
,
owner
);
strcpy
(
window_ctx
->
owner
,
owner
);
window_ctx
->
customcolors
=
ctx
->
gdraw
->
create_customcolors
();
window_ctx
->
customcolors
=
ctx
->
gdraw
->
create_customcolors
();
if
(
is_updating_attributes
)
ctx
->
gdraw
->
push_customcolors
(
window_ctx
->
customcolors
);
if
(
!
no_file
)
{
if
(
!
no_file
)
{
window_ctx
->
set_nodraw
();
window_ctx
->
set_nodraw
();
sts
=
window_ctx
->
open
(
fname
,
glow_eSaveMode_Edit
);
sts
=
window_ctx
->
open
(
fname
,
glow_eSaveMode_Edit
);
...
...
xtt/lib/glow/src/glow_growwindow.h
View file @
a6fae84a
...
@@ -274,7 +274,7 @@ public:
...
@@ -274,7 +274,7 @@ public:
virtual
int
update_attributes
();
virtual
int
update_attributes
();
//! Create a new grow context
//! Create a new grow context
void
new_ctx
();
void
new_ctx
(
bool
is_updating_attributes
=
false
);
// Configure the scrollbars
// Configure the scrollbars
void
configure_scrollbars
();
void
configure_scrollbars
();
...
...
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