summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-12-01 18:18:59 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-12-01 18:18:59 +0000
commit3f9148d0e3d0dbbfaa9de9d9b9cb727beeda7ce0 (patch)
tree6995e6ad28627f68f04ecd0716c6a63761ecaf4b /src/fe-text/statusbar.c
parent545b0d5de8455f583529bbbf4ce268b7661d13a6 (diff)
downloadirssi-3f9148d0e3d0dbbfaa9de9d9b9cb727beeda7ce0.zip
Add function to set minimum/maximum size for a statusbar item.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4936 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/statusbar.c')
-rw-r--r--src/fe-text/statusbar.c6
1 files changed, 6 insertions, 0 deletions
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;