Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Cameron Cawley
Browse
Commits
35d847e3
Commit
35d847e3
authored
27 years ago
by
David Brown
Browse files
Options
Download
Email Patches
Plain Diff
Added saving of state of hotlist (directories are open or closed)
parent
7d541185
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
c/Hotlist
c/Hotlist
+16
-3
No files found.
c/Hotlist
View file @
35d847e3
...
...
@@ -2748,7 +2748,14 @@ static _kernel_oserror * hotlist_save_entries(FILE * fileptr, hotlist_item * lis
if
(
type
==
0
||
(
type
==
1
&&
list
->
flags
&
HOTLIST_G_IS_SELECTED
))
{
HotlistWrite
(
fprintf
(
fileptr
,
"<h4>%s</h4>
\n
"
,
list
->
name
));
HotlistWrite
(
fprintf
(
fileptr
,
"<ul>
\n
"
));
if
(
list
->
flags
&
HOTLIST_D_IS_OPEN
)
{
HotlistWrite
(
fprintf
(
fileptr
,
"<ul><!--open-->
\n
"
));
}
else
{
HotlistWrite
(
fprintf
(
fileptr
,
"<ul>
\n
"
));
}
}
/* Recursive call for the directory contents First, */
/* write the entry header. */
...
...
@@ -3103,6 +3110,11 @@ static _kernel_oserror * hotlist_load_directory(FILE * fileptr, hotlist_item * t
e
=
hotlist_new_directory
(
target
,
next_directory_name
,
HOTLIST_POSITION_END
,
&
new_dir
);
if
(
e
)
goto
hotlist_load_directory_exit
;
if
(
strstr
(
string_buffer
,
"<!--open-->"
)
!=
NULL
)
{
new_dir
->
flags
|=
HOTLIST_D_IS_OPEN
;
}
free
(
next_directory_name
);
next_directory_name
=
NULL
;
...
...
@@ -5547,12 +5559,13 @@ static void hotlist_get_selected_shape_r(hotlist_item * list,
if
(
*
found
)
{
if
(
newxmin
<
box
->
xmin
)
box
->
xmin
=
newxmin
;
if
(
newxmax
>
box
->
xmax
)
box
->
xmax
=
newxmax
;
if
(
newxmin
<
box
->
xmin
)
box
->
xmin
=
newxmin
;
if
(
newxmax
>
box
->
xmax
)
box
->
xmax
=
newxmax
;
box
->
ymin
=
-
((
*
itemno
)
+
1
)
*
item_height
;
}
else
{
/* This section run for first selected item found only */
box
->
xmin
=
newxmin
;
box
->
xmax
=
newxmax
;
box
->
ymax
=
-
(
*
itemno
)
*
item_height
;
...
...
This diff is collapsed.
Click to expand it.
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