diff src/conversation.c @ 4481:b30b0a02ada0

[gaim-migrate @ 4756] The last of gtk-related code is out of the conversation framework. There are now functions to set and retrieve the conversation window UI operations structures that will be used in all windows. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 30 Jan 2003 21:25:24 +0000
parents fa2d74e20a89
children 3196d9044a45
line wrap: on
line diff
--- a/src/conversation.c	Thu Jan 30 21:09:19 2003 +0000
+++ b/src/conversation.c	Thu Jan 30 21:25:24 2003 +0000
@@ -45,6 +45,8 @@
 
 #define SEND_TYPED_TIMEOUT 5000
 
+static struct gaim_window_ui_ops *win_ui_ops = NULL;
+
 static GList *conversations = NULL;
 static GList *ims = NULL;
 static GList *chats = NULL;
@@ -436,8 +438,7 @@
 
 	win = g_malloc0(sizeof(struct gaim_window));
 
-	/* CONV XXX */
-	win->ui_ops = gaim_get_gtk_window_ui_ops();
+	win->ui_ops = gaim_get_win_ui_ops();
 
 	if (win->ui_ops != NULL && win->ui_ops->new_window != NULL)
 		win->ui_ops->new_window(win);
@@ -1412,8 +1413,6 @@
 
 	ops->write_conv(conv, who, message, length, flags, mtime);
 
-	/* TODO: Do logging fun stuff. */
-
 	win = gaim_conversation_get_window(conv);
 
 	if (!(flags & WFLAG_NOLOG) &&
@@ -2259,3 +2258,15 @@
 	place_conv = fnc;
 	place_conv_index = index;
 }
+
+void
+gaim_set_win_ui_ops(struct gaim_window_ui_ops *ops)
+{
+	win_ui_ops = ops;
+}
+
+struct gaim_window_ui_ops *
+gaim_get_win_ui_ops(void)
+{
+	return win_ui_ops;
+}