comparison libgaim/ft.c @ 14618:2f0b4d0de5bb

[gaim-migrate @ 17346] Fix the argument GaimValue types in a handful of signal registrations. These being wrong didn't matter to things that knew/guessed what their arguments were (i.e. C functions) but did matter to things that needed to trust the GaimValue type information for the types (i.e plugin loaders). I'm pretty sure I got this all right, it matches the docs at least. I still think there are a couple problems (namely the *-timestamp functions returning a GAIM_TYPE_POINTER instead of a GAIM_TYPE_STRING) but these were much more obvious. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Mon, 25 Sep 2006 06:01:12 +0000
parents 60b1bc8dbf37
children 118fd0dc5b6e
comparison
equal deleted inserted replaced
14617:3df4aadebc20 14618:2f0b4d0de5bb
1181 gaim_xfers_init(void) { 1181 gaim_xfers_init(void) {
1182 void *handle = gaim_xfers_get_handle(); 1182 void *handle = gaim_xfers_get_handle();
1183 1183
1184 /* register signals */ 1184 /* register signals */
1185 gaim_signal_register(handle, "file-recv-accept", 1185 gaim_signal_register(handle, "file-recv-accept",
1186 gaim_marshal_VOID__POINTER, 1186 gaim_marshal_VOID__POINTER, NULL, 1,
1187 NULL, 1, 1187 gaim_value_new(GAIM_TYPE_SUBTYPE,
1188 gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_XFER)); 1188 GAIM_SUBTYPE_XFER));
1189 gaim_signal_register(handle, "file-send-accept", 1189 gaim_signal_register(handle, "file-send-accept",
1190 gaim_marshal_VOID__POINTER, 1190 gaim_marshal_VOID__POINTER, NULL, 1,
1191 NULL, 1, 1191 gaim_value_new(GAIM_TYPE_SUBTYPE,
1192 gaim_value_new(GAIM_TYPE_POINTER, GAIM_SUBTYPE_XFER)); 1192 GAIM_SUBTYPE_XFER));
1193 gaim_signal_register(handle, "file-recv-start", 1193 gaim_signal_register(handle, "file-recv-start",
1194 gaim_marshal_VOID__POINTER, 1194 gaim_marshal_VOID__POINTER, NULL, 1,
1195 NULL, 1, 1195 gaim_value_new(GAIM_TYPE_SUBTYPE,
1196 gaim_value_new(GAIM_TYPE_POINTER, GAIM_SUBTYPE_XFER)); 1196 GAIM_SUBTYPE_XFER));
1197 gaim_signal_register(handle, "file-send-start", 1197 gaim_signal_register(handle, "file-send-start",
1198 gaim_marshal_VOID__POINTER, 1198 gaim_marshal_VOID__POINTER, NULL, 1,
1199 NULL, 1, 1199 gaim_value_new(GAIM_TYPE_SUBTYPE,
1200 gaim_value_new(GAIM_TYPE_POINTER, GAIM_SUBTYPE_XFER)); 1200 GAIM_SUBTYPE_XFER));
1201 gaim_signal_register(handle, "file-send-cancel", 1201 gaim_signal_register(handle, "file-send-cancel",
1202 gaim_marshal_VOID__POINTER, 1202 gaim_marshal_VOID__POINTER, NULL, 1,
1203 NULL, 1, 1203 gaim_value_new(GAIM_TYPE_SUBTYPE,
1204 gaim_value_new(GAIM_TYPE_POINTER, GAIM_SUBTYPE_XFER)); 1204 GAIM_SUBTYPE_XFER));
1205 gaim_signal_register(handle, "file-recv-cancel", 1205 gaim_signal_register(handle, "file-recv-cancel",
1206 gaim_marshal_VOID__POINTER, 1206 gaim_marshal_VOID__POINTER, NULL, 1,
1207 NULL, 1, 1207 gaim_value_new(GAIM_TYPE_SUBTYPE,
1208 gaim_value_new(GAIM_TYPE_POINTER, GAIM_SUBTYPE_XFER)); 1208 GAIM_SUBTYPE_XFER));
1209 gaim_signal_register(handle, "file-send-complete", 1209 gaim_signal_register(handle, "file-send-complete",
1210 gaim_marshal_VOID__POINTER, 1210 gaim_marshal_VOID__POINTER, NULL, 1,
1211 NULL, 1, 1211 gaim_value_new(GAIM_TYPE_SUBTYPE,
1212 gaim_value_new(GAIM_TYPE_POINTER, GAIM_SUBTYPE_XFER)); 1212 GAIM_SUBTYPE_XFER));
1213 gaim_signal_register(handle, "file-recv-complete", 1213 gaim_signal_register(handle, "file-recv-complete",
1214 gaim_marshal_VOID__POINTER, 1214 gaim_marshal_VOID__POINTER, NULL, 1,
1215 NULL, 1, 1215 gaim_value_new(GAIM_TYPE_SUBTYPE,
1216 gaim_value_new(GAIM_TYPE_POINTER, GAIM_SUBTYPE_XFER)); 1216 GAIM_SUBTYPE_XFER));
1217 gaim_signal_register(handle, "file-recv-request", 1217 gaim_signal_register(handle, "file-recv-request",
1218 gaim_marshal_VOID__POINTER, 1218 gaim_marshal_VOID__POINTER, NULL, 1,
1219 NULL, 1, 1219 gaim_value_new(GAIM_TYPE_SUBTYPE,
1220 gaim_value_new(GAIM_TYPE_POINTER, GAIM_SUBTYPE_XFER)); 1220 GAIM_SUBTYPE_XFER));
1221 } 1221 }
1222 1222
1223 void 1223 void
1224 gaim_xfers_uninit(void) { 1224 gaim_xfers_uninit(void) {
1225 gaim_signals_disconnect_by_handle(gaim_xfers_get_handle()); 1225 gaim_signals_disconnect_by_handle(gaim_xfers_get_handle());