Function

Purplerequest_folder

Declaration [src]

void*
purple_request_folder (
  void* handle,
  const char* title,
  const char* dirname,
  GCallback ok_cb,
  GCallback cancel_cb,
  PurpleRequestCommonParameters* cpar,
  void* user_data
)

Description [src]

Displays a folder select dialog. Returns the selected filename to the callback.

Parameters

handle

Type: void*

The plugin or connection handle. For some things this is extremely important. See the comments on purple_request_input().

The argument can be NULL.
The data is owned by the caller of the function.
title

Type: const char*

The title of the message, or NULL if it should have no title.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
dirname

Type: const char*

The default directory name (may be NULL).

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
ok_cb

Type: GCallback

The callback for the OK button.

cancel_cb

Type: GCallback

The callback for the Cancel button, which may be NULL.

cpar

Type: PurpleRequestCommonParameters

The PurpleRequestCommonParameters object, which gets unref’ed after this call.

The data is owned by the caller of the function.
user_data

Type: void*

The data to pass to the callback.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: void*

A UI-specific handle.

The data is owned by the called function.
The return value can be NULL.