mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
ncselector_options: constify string arguments
This commit is contained in:
parent
d82cc8e6f7
commit
1152e2c318
@ -22,9 +22,9 @@ struct ncmselector_item {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef struct ncmultiselector_options {
|
typedef struct ncmultiselector_options {
|
||||||
char* title; // title may be NULL, inhibiting riser
|
const char* title; // title may be NULL, inhibiting riser
|
||||||
char* secondary; // secondary may be NULL
|
const char* secondary; // secondary may be NULL
|
||||||
char* footer; // footer may be NULL
|
const char* footer; // footer may be NULL
|
||||||
struct ncmselector_item* items; // initial items, statuses
|
struct ncmselector_item* items; // initial items, statuses
|
||||||
// default item (selected at start)
|
// default item (selected at start)
|
||||||
unsigned defidx;
|
unsigned defidx;
|
||||||
|
@ -21,9 +21,9 @@ struct ncselector_item {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef struct ncselector_options {
|
typedef struct ncselector_options {
|
||||||
char* title; // title may be NULL, inhibiting riser
|
const char* title; // title may be NULL, inhibiting riser
|
||||||
char* secondary; // secondary may be NULL
|
const char* secondary; // secondary may be NULL
|
||||||
char* footer; // footer may be NULL
|
const char* footer; // footer may be NULL
|
||||||
struct ncselector_item* items; // initial items and descriptions
|
struct ncselector_item* items; // initial items and descriptions
|
||||||
// default item (selected at start)
|
// default item (selected at start)
|
||||||
unsigned defidx;
|
unsigned defidx;
|
||||||
|
@ -3332,9 +3332,9 @@ struct ncselector_item {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef struct ncselector_options {
|
typedef struct ncselector_options {
|
||||||
char* title; // title may be NULL, inhibiting riser, saving two rows.
|
const char* title; // title may be NULL, inhibiting riser, saving two rows.
|
||||||
char* secondary; // secondary may be NULL
|
const char* secondary; // secondary may be NULL
|
||||||
char* footer; // footer may be NULL
|
const char* footer; // footer may be NULL
|
||||||
struct ncselector_item* items; // initial items and descriptions
|
struct ncselector_item* items; // initial items and descriptions
|
||||||
// default item (selected at start), must be < itemcount unless itemcount is
|
// default item (selected at start), must be < itemcount unless itemcount is
|
||||||
// 0, in which case 'defidx' must also be 0
|
// 0, in which case 'defidx' must also be 0
|
||||||
@ -3411,9 +3411,9 @@ struct ncmselector_item {
|
|||||||
// Unlike the selector widget, zero to all of the items can be selected, but
|
// Unlike the selector widget, zero to all of the items can be selected, but
|
||||||
// also the widget does not support adding or removing items at runtime.
|
// also the widget does not support adding or removing items at runtime.
|
||||||
typedef struct ncmultiselector_options {
|
typedef struct ncmultiselector_options {
|
||||||
char* title; // title may be NULL, inhibiting riser, saving two rows.
|
const char* title; // title may be NULL, inhibiting riser, saving two rows.
|
||||||
char* secondary; // secondary may be NULL
|
const char* secondary; // secondary may be NULL
|
||||||
char* footer; // footer may be NULL
|
const char* footer; // footer may be NULL
|
||||||
struct ncmselector_item* items; // initial items, descriptions, and statuses
|
struct ncmselector_item* items; // initial items, descriptions, and statuses
|
||||||
// maximum number of options to display at once, 0 to use all available space
|
// maximum number of options to display at once, 0 to use all available space
|
||||||
unsigned maxdisplay;
|
unsigned maxdisplay;
|
||||||
|
Loading…
Reference in New Issue
Block a user