Lots of moving stuff around - hopefully I didn't break too much :)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-08-26 15:39:44 +00:00 committed by cras
commit e395e87ded
160 changed files with 3954 additions and 2959 deletions

View file

@ -20,7 +20,7 @@
#include "module.h"
#include "signals.h"
#include "server.h"
#include "servers.h"
#include "misc.h"
#include "completion.h"

View file

@ -25,7 +25,7 @@
#include "gui-readline.h"
/* idle time */
static char *expando_idletime(void *server, void *item, int *free_ret)
static char *expando_idletime(SERVER_REC *server, void *item, int *free_ret)
{
int diff;
@ -35,13 +35,13 @@ static char *expando_idletime(void *server, void *item, int *free_ret)
}
/* current contents of the input line */
static char *expando_inputline(void *server, void *item, int *free_ret)
static char *expando_inputline(SERVER_REC *server, void *item, int *free_ret)
{
return gui_entry_get_text();
}
/* FIXME: value of cutbuffer */
static char *expando_cutbuffer(void *server, void *item, int *free_ret)
static char *expando_cutbuffer(SERVER_REC *server, void *item, int *free_ret)
{
return cutbuffer;
}

View file

@ -26,7 +26,7 @@
#include "levels.h"
#include "settings.h"
#include "irc-server.h"
#include "irc-servers.h"
#include "windows.h"
#include "screen.h"

View file

@ -21,7 +21,7 @@
#include "module.h"
#include "signals.h"
#include "commands.h"
#include "server.h"
#include "servers.h"
#include "misc.h"
#include "settings.h"
@ -244,9 +244,6 @@ void gui_window_newline(GUI_WINDOW_REC *gui, int visible)
scrollok(gui->parent->curses_win, TRUE);
wscrl(gui->parent->curses_win, 1);
scrollok(gui->parent->curses_win, FALSE);
wmove(gui->parent->curses_win, gui->parent->lines, 0);
wclrtoeol(gui->parent->curses_win);
}
}

View file

@ -1,7 +1,7 @@
#ifndef __GUI_WINDOWS_H
#define __GUI_WINDOWS_H
#include "server.h"
#include "servers.h"
#include "mainwindows.h"
#define WINDOW_GUI(a) ((GUI_WINDOW_REC *) ((a)->gui_data))

View file

@ -88,7 +88,7 @@ static void textui_init(void)
fe_common_core_init();
fe_common_irc_init();
theme_register(gui_text_formats);
theme_register(gui_text_formats);
signal_add("gui exit", (SIGNAL_FUNC) sig_exit);
}

View file

@ -20,14 +20,14 @@
#include "module.h"
#include "signals.h"
#include "server.h"
#include "servers.h"
#include "misc.h"
#include "settings.h"
#include "irc.h"
#include "channels.h"
#include "query.h"
#include "irc-server.h"
#include "queries.h"
#include "irc-servers.h"
#include "nicklist.h"
#include "windows.h"
@ -150,7 +150,7 @@ static void statusbar_nick(SBAR_ITEM_REC *item, int ypos)
strncpy(nick, server->nick, 9);
nick[9] = '\0';
channel = irc_item_channel(active_win->active);
channel = CHANNEL(active_win->active);
nickrec = channel == NULL ? NULL : nicklist_find(channel, server->nick);
}
@ -224,7 +224,7 @@ static void statusbar_channel(SBAR_ITEM_REC *item, int ypos)
ltoa(winnum, window == NULL ? 0 : window->refnum);
witem = window != NULL && irc_item_check(window->active) ?
witem = window != NULL && (IS_CHANNEL(window->active) || IS_QUERY(window->active)) ?
window->active : NULL;
if (witem == NULL)
{
@ -242,7 +242,7 @@ static void statusbar_channel(SBAR_ITEM_REC *item, int ypos)
strncpy(channame, tmpname, 20); channame[20] = '\0';
g_free(tmpname);
channel = irc_item_channel(witem);
channel = CHANNEL(witem);
if (channel == NULL) {
mode_size = 0;
} else {
@ -681,8 +681,8 @@ static void statusbar_topic(SBAR_ITEM_REC *item, int ypos)
return;
topic = NULL;
channel = irc_item_channel(active_win->active);
query = irc_item_query(active_win->active);
channel = CHANNEL(active_win->active);
query = QUERY(active_win->active);
if (channel != NULL && channel->topic != NULL) topic = channel->topic;
if (query != NULL && query->address != NULL) topic = query->address;

View file

@ -20,7 +20,7 @@
#include "module.h"
#include "signals.h"
#include "server.h"
#include "servers.h"
#include "settings.h"
#include "windows.h"