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
d7da8a0f
Commit
d7da8a0f
authored
27 years ago
by
David Brown
Browse files
Options
Download
Email Patches
Plain Diff
Fixed problems with selecting encodings in the parent encoding menu.
parent
10432459
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
c/Encoding
c/Encoding
+10
-6
No files found.
c/Encoding
View file @
d7da8a0f
...
...
@@ -189,13 +189,13 @@ int encoding_select(int eventcode, ToolboxEvent * event, IdBlock * idb, void * h
{
ObjectId
ancestor
;
e
=
toolbox_get_ancestor
(
0
,
idb
->
ancestor
_id
,
&
ancestor
,
NULL
);
e
=
toolbox_get_ancestor
(
0
,
menu
_id
,
&
ancestor
,
NULL
);
if
(
!
e
&&
ancestor
==
choices_windowid
&&
new_choices
)
{
new_choices
->
encoding
=
idb
->
self_component
;
choices_set_encoding_field
();
encoding_prepare_menu
(
idb
->
ancestor
_id
,
priority_default
,
new_choices
->
encoding
);
encoding_prepare_menu
(
menu
_id
,
priority_default
,
new_choices
->
encoding
);
return
1
;
}
else
...
...
@@ -208,7 +208,7 @@ int encoding_select(int eventcode, ToolboxEvent * event, IdBlock * idb, void * h
b
->
encoding
=
idb
->
self_component
;
b
->
encoding_priority
=
priority_user
;
encoding_prepare_menu
(
idb
->
ancestor
_id
,
b
->
encoding_priority
,
b
->
encoding
);
encoding_prepare_menu
(
menu
_id
,
b
->
encoding_priority
,
b
->
encoding
);
}
return
1
;
...
...
@@ -240,7 +240,7 @@ int encoding_from_document_select(int eventcode, ToolboxEvent * event, IdBlock *
b
->
encoding_priority
=
priority_user
;
}
encoding_prepare_menu
(
idb
->
self
_id
,
b
->
encoding_priority
,
b
->
encoding
);
encoding_prepare_menu
(
menu
_id
,
b
->
encoding_priority
,
b
->
encoding
);
return
1
;
}
...
...
@@ -269,8 +269,12 @@ int encoding_show_menu(int eventcode, ToolboxEvent * event, IdBlock * idb, void
if
(
idb
->
ancestor_id
==
choices_windowid
&&
new_choices
)
{
/* Fade "From document" item as it is not relevant to choices */
encoding_prepare_menu
(
idb
->
self_id
,
priority_default
,
new_choices
->
encoding
);
menu_set_fade
(
0
,
idb
->
self_id
,
0x11FFF
,
1
);
encoding_prepare_menu
(
menu_id
,
priority_default
,
new_choices
->
encoding
);
toolbox_set_client_handle
(
0
,
idb
->
self_id
,
NULL
);
return
1
;
}
else
...
...
@@ -292,7 +296,7 @@ int encoding_show_menu(int eventcode, ToolboxEvent * event, IdBlock * idb, void
toolbox_set_client_handle
(
0
,
idb
->
self_id
,
b
);
encoding_prepare_menu
(
idb
->
self
_id
,
b
->
encoding_priority
,
b
->
encoding
);
encoding_prepare_menu
(
menu
_id
,
b
->
encoding_priority
,
b
->
encoding
);
}
return
1
;
...
...
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