comparison src/gui_gtk.c @ 40:f1d2a58883b9 v7.0024

updated for version 7.0024
author vimboss
date Fri, 24 Dec 2004 14:35:23 +0000
parents 410fa1a31baf
children f529edb9bab3
comparison
equal deleted inserted replaced
39:410fa1a31baf 40:f1d2a58883b9
2012 count = 0; 2012 count = 0;
2013 2013
2014 if (array != NULL) 2014 if (array != NULL)
2015 { 2015 {
2016 array[count++] = (char *)button_string; 2016 array[count++] = (char *)button_string;
2017 for (p = button_string; *p != NUL; mb_ptr_adv(p)) 2017 for (p = button_string; *p != NUL; )
2018 { 2018 {
2019 if (*p == DLG_BUTTON_SEP) 2019 if (*p == DLG_BUTTON_SEP)
2020 { 2020 {
2021 *p = NUL; 2021 *p++ = NUL;
2022 array[count++] = (char *)p + 1; 2022 array[count++] = (char *)p;
2023 } 2023 }
2024 else if (*p == DLG_HOTKEY_CHAR) 2024 else if (*p == DLG_HOTKEY_CHAR)
2025 *p = '_'; 2025 *p++ = '_';
2026 else
2027 mb_ptr_adv(p);
2026 } 2028 }
2027 array[count] = NULL; /* currently not relied upon, but doesn't hurt */ 2029 array[count] = NULL; /* currently not relied upon, but doesn't hurt */
2028 } 2030 }
2029 2031
2030 *n_buttons = count; 2032 *n_buttons = count;