doc/reference/libpurple/signals_cmd.md

Mon, 04 Apr 2022 23:56:44 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 04 Apr 2022 23:56:44 -0500
changeset 41321
97b0dbc1873f
parent 41164
d861b10105fb
permissions
-rw-r--r--

Remove PidginContactCompletion for now as it's barely used and not GTK4 compatible.

I created PIDGIN-17606 to reimplement this in a better way and to use it in the
new instant message dialog as well as the invite to chat dialog.

Testing Done:
Compiled and ran.

Reviewed at https://reviews.imfreedom.org/r/1378/

Title: Command Signals
Slug: command-signals

## Command Signals

### Signal List

* [cmd-added](#cmd-added)
* [cmd-removed](#cmd-removed)

### Signal Details

#### cmd-added

```c
void user_function(const gchar *command,
                   PurpleCmdPriority priority,
                   PurpleCmdFlag flag,
                   gpointer user_data);
```

Emitted when a new command is added.

**Parameters:**

**command**
: The new command.

**priority**
: The priority of the new command.

**flag**
: The command flags.

**user_data**
: User data set when the signal handler was connected.

----

#### cmd-removed

```c
void user_function(const gchar *command, gpointer user_data);
```

Emitted when a command is removed.

**Parameters:**

**command**
: The removed command.

**user_data**
: User data set when the signal handler was connected.

mercurial