Mercurial > pidgin.yaz
comparison src/prpl.c @ 7619:994b2d782711
[gaim-migrate @ 8243]
Juan Pablo Mendoza made file sending a little more generic, UI-wise, and
added drag-and-drop file sending, as well as a Send File in the
conversation menu. Congrats Juan on the $400 bounty.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 24 Nov 2003 02:35:27 +0000 |
parents | 85181c25cae3 |
children | ea2d07ad05a9 |
comparison
equal
deleted
inserted
replaced
7618:53e38b1ce00a | 7619:994b2d782711 |
---|---|
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 return NULL; | 97 return NULL; |
98 } | 98 } |
99 | |
100 void gaim_prpl_ask_send_file (GaimConnection *gc, char *name) | |
101 { | |
102 GaimPluginProtocolInfo *prpl_info = NULL; | |
103 | |
104 if (gc != NULL && gc->prpl != NULL) | |
105 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | |
106 | |
107 if (prpl_info->has_send_file == NULL || prpl_info->send_file == NULL) | |
108 return FALSE; | |
109 | |
110 prpl_info->ask_send_file(gc, name); | |
111 } | |
112 | |
113 | |
114 gboolean gaim_prpl_has_send_file (GaimConnection *gc, char *name) | |
115 { | |
116 GaimPluginProtocolInfo *prpl_info = NULL; | |
117 | |
118 if (gc != NULL && gc->prpl != NULL) | |
119 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | |
120 | |
121 if (prpl_info->has_send_file == NULL || prpl_info->send_file == NULL) | |
122 return FALSE; | |
123 | |
124 return prpl_info->has_send_file(gc, name); | |
125 | |
126 } |