summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/statusbar-item.h1
-rw-r--r--src/fe-text/statusbar.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/fe-text/statusbar-item.h b/src/fe-text/statusbar-item.h
index 788fed75..ce9011e4 100644
--- a/src/fe-text/statusbar-item.h
+++ b/src/fe-text/statusbar-item.h
@@ -8,6 +8,7 @@ typedef void (*STATUSBAR_FUNC) (struct SBAR_ITEM_REC *item, int get_size_only);
void statusbar_item_register(const char *name, const char *value,
STATUSBAR_FUNC func);
void statusbar_item_unregister(const char *name);
+void statusbar_item_set_size(struct SBAR_ITEM_REC *item, int min_size, int max_size);
void statusbar_item_default_handler(struct SBAR_ITEM_REC *item, int get_size_only,
const char *str, const char *data,
int escape_vars);
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c
index eb138404..45bdec05 100644
--- a/src/fe-text/statusbar.c
+++ b/src/fe-text/statusbar.c
@@ -92,6 +92,12 @@ void statusbar_item_unregister(const char *name)
}
}
+void statusbar_item_set_size(struct SBAR_ITEM_REC *item, int min_size, int max_size)
+{
+ item->min_size = min_size;
+ item->max_size = max_size;
+}
+
STATUSBAR_GROUP_REC *statusbar_group_create(const char *name)
{
STATUSBAR_GROUP_REC *rec;