#ifndef CHAT_H #define CHAT_H #ifndef GUIUTILS_H #include "guiutils.h" #endif #ifndef USERWIDGET_H #include "userwidget.h" #endif typedef struct ChatWindowWidgets_ ChatWindowWidgets; struct ChatWindowWidgets_ { GtkWidget *subject; GtkWidget *textarea; GtkWidget *message; GtkWidget *send,*emote; UserWidget *userwidget; void (*sendmsg)(ChatWindowWidgets *cww, gpointer data, int emote); gpointer user_data; NotebookPage *nb; }; void chat_pane_create(NotebookPage *nb,ChatWindowWidgets *cww,gboolean with_title); void chat_receive_mesasage(Connection *c,Message *m,gpointer data); void chat_pane_send_chat(Connection *c,ChatWindowWidgets *cww, HLObject *chatwindow,int emote); void chat_pane_handle_chat(ChatWindowWidgets *cww,Message *m); void chat_pane_add_text(ChatWindowWidgets *cww,char *text); #endif