Mercurial > pidgin
comparison libpurple/request.c @ 19860:9d198ce0ab65
Making plugins dialog work
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Wed, 08 Aug 2007 19:47:05 +0000 |
parents | 9a31c183b470 |
children | 8984c70d5b45 |
comparison
equal
deleted
inserted
replaced
19859:9a31c183b470 | 19860:9d198ce0ab65 |
---|---|
1286 purple_request_fields(void *handle, const char *title, const char *primary, | 1286 purple_request_fields(void *handle, const char *title, const char *primary, |
1287 const char *secondary, PurpleRequestFields *fields, | 1287 const char *secondary, PurpleRequestFields *fields, |
1288 const char *ok_text, GCallback ok_cb, | 1288 const char *ok_text, GCallback ok_cb, |
1289 const char *cancel_text, GCallback cancel_cb, | 1289 const char *cancel_text, GCallback cancel_cb, |
1290 PurpleAccount *account, const char *who, PurpleConversation *conv, | 1290 PurpleAccount *account, const char *who, PurpleConversation *conv, |
1291 void *ui_data, void *user_data) | 1291 void *user_data) |
1292 { | 1292 { |
1293 PurpleRequestUiOps *ops; | 1293 PurpleRequestUiOps *ops; |
1294 | 1294 |
1295 g_return_val_if_fail(fields != NULL, NULL); | 1295 g_return_val_if_fail(fields != NULL, NULL); |
1296 g_return_val_if_fail(ok_text != NULL, NULL); | 1296 g_return_val_if_fail(ok_text != NULL, NULL); |
1306 info->handle = handle; | 1306 info->handle = handle; |
1307 info->ui_handle = ops->request_fields(title, primary, secondary, | 1307 info->ui_handle = ops->request_fields(title, primary, secondary, |
1308 fields, ok_text, ok_cb, | 1308 fields, ok_text, ok_cb, |
1309 cancel_text, cancel_cb, | 1309 cancel_text, cancel_cb, |
1310 account, who, conv, | 1310 account, who, conv, |
1311 ui_data, user_data); | 1311 user_data); |
1312 | 1312 |
1313 handles = g_list_append(handles, info); | 1313 handles = g_list_append(handles, info); |
1314 | 1314 |
1315 return info->ui_handle; | 1315 return info->ui_handle; |
1316 } | 1316 } |