diff src/ft.c @ 5169:71927464a1db

[gaim-migrate @ 5533] I needed to do this for getfile. Basically, I added a new ui operation for when a new xfer is created. The ui operation creates the needed ui data. Previously it was done when the file was choosen, but with getfile, when sending files to other peeps there isn't a "save file" or "choose file to send" dialog. Ya catch my drift? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 18 Apr 2003 21:01:38 +0000
parents 98d16e2d1bf9
children ad445074d239
line wrap: on
line diff
--- a/src/ft.c	Fri Apr 18 19:48:42 2003 +0000
+++ b/src/ft.c	Fri Apr 18 21:01:38 2003 +0000
@@ -41,6 +41,7 @@
 			  const char *who)
 {
 	struct gaim_xfer *xfer;
+	struct gaim_xfer_ui_ops *ui_ops;
 
 	if (account == NULL || type == GAIM_XFER_UNKNOWN || who == NULL)
 		return NULL;
@@ -52,6 +53,11 @@
 	xfer->who     = g_strdup(who);
 	xfer->ui_ops  = gaim_get_xfer_ui_ops();
 
+	ui_ops = gaim_xfer_get_ui_ops(xfer);
+
+	if (ui_ops != NULL && ui_ops->new != NULL)
+		ui_ops->new(xfer);
+
 	return xfer;
 }