comparison src/request.c @ 13282:a651bfe0a922

[gaim-migrate @ 15648] Part of SF Patch #1175520 from Dennis Nezic with changes by Sadrul to support GTK+ < 2.4 This adds the folder selection function to the request API. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 14 Feb 2006 07:45:07 +0000
parents 3638606a5afa
children 8bda65b88e49
comparison
equal deleted inserted replaced
13281:e629076386f1 13282:a651bfe0a922
1361 } 1361 }
1362 1362
1363 return NULL; 1363 return NULL;
1364 } 1364 }
1365 1365
1366 void *
1367 gaim_request_folder(void *handle, const char *title, const char *dirname,
1368 GCallback ok_cb, GCallback cancel_cb, void *user_data)
1369 {
1370 GaimRequestUiOps *ops;
1371
1372 ops = gaim_request_get_ui_ops();
1373
1374 if (ops != NULL && ops->request_file != NULL) {
1375 GaimRequestInfo *info;
1376
1377 info = g_new0(GaimRequestInfo, 1);
1378 info->type = GAIM_REQUEST_FOLDER;
1379 info->handle = handle;
1380 info->ui_handle = ops->request_folder(title, dirname,
1381 ok_cb, cancel_cb, user_data);
1382 handles = g_list_append(handles, info);
1383 return info->ui_handle;
1384 }
1385
1386 return NULL;
1387 }
1388
1366 static void 1389 static void
1367 gaim_request_close_info(GaimRequestInfo *info) 1390 gaim_request_close_info(GaimRequestInfo *info)
1368 { 1391 {
1369 GaimRequestUiOps *ops; 1392 GaimRequestUiOps *ops;
1370 1393