pidgin/pidgin

Add a get_minimum_search_length to PurpleProtocolContacts
default tip
5 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/
/*
* Pidgin - XMPP debugging tool
* Copyright (C) Pidgin Developers <devel@pidgin.im>
*
* Pidgin is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <https://www.gnu.org/licenses/>.
*/
#ifndef PIDGIN_XMPP_CONSOLE_H
#define PIDGIN_XMPP_CONSOLE_H
#include <glib.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define PIDGIN_TYPE_XMPP_CONSOLE (pidgin_xmpp_console_get_type())
G_DECLARE_FINAL_TYPE(PidginXmppConsole, pidgin_xmpp_console, PIDGIN,
XMPP_CONSOLE, GtkWindow)
#endif /* PIDGIN_XMPP_CONSOLE_H */