~ubuntu-branches/ubuntu/oneiric/irssi/oneiric

« back to all changes in this revision

Viewing changes to src/fe-text/statusbar.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-05-05 15:50:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505155050-aoqlnpes7che9rtd
Tags: 0.8.13-1ubuntu1
* Merge from debian unstable (LP: #372411), remaining changes:
  - debian/patches: 03firsttimer_text
    + Adapt it so it tells you about connecting to irc.ubuntu.com and
      joining #ubuntu instead of irc.debian.org and #debian.
  - debian/patches: 90irc-ubuntu-com
* Fixed debian/patches/90irc-ubuntu-com for new irssi.conf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define __STATUSBAR_H
3
3
 
4
4
#include "mainwindows.h"
 
5
#include "statusbar-item.h"
5
6
 
6
7
#define STATUSBAR_PRIORITY_HIGH         100
7
8
#define STATUSBAR_PRIORITY_NORMAL       0
8
9
#define STATUSBAR_PRIORITY_LOW          -100
9
10
 
10
11
typedef struct SBAR_ITEM_REC SBAR_ITEM_REC;
11
 
typedef void (*STATUSBAR_FUNC) (SBAR_ITEM_REC *item, int get_size_only);
12
12
 
13
13
/* type */
14
14
#define STATUSBAR_TYPE_ROOT     1
80
80
extern GSList *statusbar_groups;
81
81
extern STATUSBAR_GROUP_REC *active_statusbar_group;
82
82
 
83
 
void statusbar_item_register(const char *name, const char *value,
84
 
                             STATUSBAR_FUNC func);
85
 
void statusbar_item_unregister(const char *name);
86
 
 
87
83
STATUSBAR_GROUP_REC *statusbar_group_create(const char *name);
88
84
void statusbar_group_destroy(STATUSBAR_GROUP_REC *rec);
89
85
STATUSBAR_GROUP_REC *statusbar_group_find(const char *name);
99
95
                                     SBAR_ITEM_CONFIG_REC *config);
100
96
void statusbar_item_destroy(SBAR_ITEM_REC *item);
101
97
 
102
 
void statusbar_item_default_handler(SBAR_ITEM_REC *item, int get_size_only,
103
 
                                    const char *str, const char *data,
104
 
                                    int escape_vars);
105
 
 
106
98
/* redraw statusbar, NULL = all */
107
99
void statusbar_redraw(STATUSBAR_REC *bar, int force);
108
100
void statusbar_item_redraw(SBAR_ITEM_REC *item);
109
 
void statusbar_items_redraw(const char *name);
110
101
 
111
102
void statusbar_recreate_items(STATUSBAR_REC *bar);
112
103
void statusbars_recreate_items(void);