texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Patrice Dumas
Date: Thu, 3 Oct 2024 08:03:38 -0400 (EDT)

branch: master
commit 0aa2b41eff067033165047c05d79c57ad2e83ed8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Oct 3 11:00:11 2024 +0200

    * tp/Texinfo/XS/convert/converter_options.c (DEFAULT_MISC_BUTTONS):
    rename T2H_MISC_BUTTONS as DEFAULT_MISC_BUTTONS.
    
    * tp/Texinfo/XS/convert/converter_options.c
    (set_html_default_buttons_specifications): set default MISC_BUTTONS
    matching Perl using new_directions_list_buttons_specifications.
---
 ChangeLog                                 |  9 +++++++++
 tp/Texinfo/XS/convert/converter_options.c | 14 +++++++-------
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c65c9a4d84..9aa1348a43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-10-03  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/converter_options.c (DEFAULT_MISC_BUTTONS):
+       rename T2H_MISC_BUTTONS as DEFAULT_MISC_BUTTONS.
+
+       * tp/Texinfo/XS/convert/converter_options.c
+       (set_html_default_buttons_specifications): set default MISC_BUTTONS
+       matching Perl using new_directions_list_buttons_specifications.
+
 2024-10-03  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/converter_options.c
diff --git a/tp/Texinfo/XS/convert/converter_options.c 
b/tp/Texinfo/XS/convert/converter_options.c
index b994e0c6b6..3aa57aa9c2 100644
--- a/tp/Texinfo/XS/convert/converter_options.c
+++ b/tp/Texinfo/XS/convert/converter_options.c
@@ -181,6 +181,11 @@ new_section_footer_buttons (const CONVERTER *self)
 
 
 
+static const int DEFAULT_MISC_BUTTONS[] = {
+ D_direction_Top, BSUD_D_Contents, D_direction_Index, BSUD_D_About,
+ -1
+};
+
 /* same as NODE_FOOTER_BUTTONS */
 static const int T2H_SECTION_BUTTONS[] = {
  D_direction_FastBack, D_direction_Back, D_direction_Up, D_direction_Forward,
@@ -197,11 +202,6 @@ static const int T2H_TOP_BUTTONS[] = {
  -1
 };
 
-static const int T2H_MISC_BUTTONS[] = {
- D_direction_Top, BSUD_D_Contents, D_direction_Index, BSUD_D_About,
- -1
-};
-
 /* same as CHAPTER_FOOTER_BUTTONS */
 static const int T2H_CHAPTER_BUTTONS[] = {
  D_direction_FastBack, D_direction_FastForward, D_direction_Space,
@@ -275,7 +275,7 @@ set_html_default_buttons_specifications (CONVERTER *self)
   set_option_buttons_specification (&options->CHAPTER_BUTTONS,
                                     new_section_buttons (self));
   set_option_buttons_specification (&options->MISC_BUTTONS,
-                                    new_section_buttons (self));
+      new_directions_list_buttons_specifications (self, DEFAULT_MISC_BUTTONS));
   set_option_buttons_specification (&options->TOP_BUTTONS,
                                     new_section_buttons (self));
   set_option_buttons_specification (&options->CHAPTER_FOOTER_BUTTONS,
@@ -298,7 +298,7 @@ set_texi2html_default_buttons_specifications (CONVERTER 
*self)
       new_directions_list_buttons_specifications (self, T2H_TOP_BUTTONS));
 
   set_option_buttons_specification (&options->MISC_BUTTONS,
-      new_directions_list_buttons_specifications (self, T2H_MISC_BUTTONS));
+      new_directions_list_buttons_specifications (self, DEFAULT_MISC_BUTTONS));
 
   set_option_buttons_specification (&options->CHAPTER_BUTTONS,
       new_directions_list_buttons_specifications (self, T2H_CHAPTER_BUTTONS));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]