1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Emanuele Giaquinta 2008-12-01 18:18:59 +00:00 committed by exg
parent 545b0d5de8
commit 3f9148d0e3
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -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;