pidgin/pidgin

Add a get_minimum_search_length to PurpleProtocolContacts
default tip
9 days ago, Gary Kramlich
5ebb4beb29b7
Add a get_minimum_search_length to PurpleProtocolContacts

This can be used by user interfaces, to not call
PurpleProtocolContacts.search_async with strings smaller than this length.

Testing Done:
Called in the turtles and ran the protocol_contacts test under valgrind.

Reviewed at https://reviews.imfreedom.org/r/3164/
<?xml version="1.0" encoding="utf-8"?>
<schemalist>
<schema path="/plugins/joinpart/" id="im.pidgin.Purple.plugin.JoinPart">
<key name="threshold" type="i">
<default>20</default>
<range min="0" max="1000"/>
<summary>Room size threshold</summary>
<description>
The number of people that must be in a room for this plugin to have any
effect.
</description>
</key>
<key name="delay" type="i">
<default>10</default>
<range min="0" max="480"/><!-- 8 hours maximum -->
<summary>Delay</summary>
<description>
The number of minutes before a person is considered to have stopped
being part of active conversation.
</description>
</key>
<key name="hide-buddies" type="b">
<default>false</default>
<summary>Hide buddies</summary>
<description>
Whether to apply hiding rules to buddies also.
</description>
</key>
</schema>
</schemalist>