mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1000 from ailin-nemui/window-bounds-type
Store window bounds type
This commit is contained in:
commit
6239a8b791
@ -6,7 +6,7 @@
|
|||||||
#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
|
#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
|
||||||
#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */
|
#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */
|
||||||
|
|
||||||
#define IRSSI_ABI_VERSION 19
|
#define IRSSI_ABI_VERSION 20
|
||||||
|
|
||||||
#define DEFAULT_SERVER_ADD_PORT 6667
|
#define DEFAULT_SERVER_ADD_PORT 6667
|
||||||
#define DEFAULT_SERVER_ADD_TLS_PORT 6697
|
#define DEFAULT_SERVER_ADD_TLS_PORT 6697
|
||||||
|
@ -22,6 +22,7 @@ enum {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
char *servertag;
|
char *servertag;
|
||||||
char *name;
|
char *name;
|
||||||
|
int type;
|
||||||
unsigned int sticky:1;
|
unsigned int sticky:1;
|
||||||
} WINDOW_BIND_REC;
|
} WINDOW_BIND_REC;
|
||||||
|
|
||||||
|
@ -70,11 +70,12 @@ static void sig_layout_restore_item(WINDOW_REC *window, const char *type,
|
|||||||
restore_win = window;
|
restore_win = window;
|
||||||
|
|
||||||
protocol = chat_protocol_find(chat_type);
|
protocol = chat_protocol_find(chat_type);
|
||||||
if (protocol == NULL || protocol->not_initialized)
|
if (protocol == NULL || protocol->not_initialized) {
|
||||||
window_bind_add(window, tag, name);
|
WINDOW_BIND_REC *rec = window_bind_add(window, tag, name);
|
||||||
else if (protocol->query_create != NULL)
|
rec->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "QUERY");
|
||||||
|
} else if (protocol->query_create != NULL) {
|
||||||
protocol->query_create(tag, name, TRUE);
|
protocol->query_create(tag, name, TRUE);
|
||||||
else {
|
} else {
|
||||||
QUERY_REC *query;
|
QUERY_REC *query;
|
||||||
|
|
||||||
query = g_new0(QUERY_REC, 1);
|
query = g_new0(QUERY_REC, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user