UI data is stored on GObjects and automatically destroyed, so this isn't
really needed as a UI op for *our* UIs. There will be a replacement soon
if needed by other UIs.
/* pidgin
*
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*
*/
#include"internal.h"
#include"pidgin.h"
#include"account.h"
#include"action.h"
#include"connection.h"
#include"core.h"
#include"debug.h"
#include"notify.h"
#include"protocol.h"
#include"prefs.h"
#include"plugins.h"
#include"request.h"
#include"signals.h"
#include"pidginstock.h"
#include"theme-loader.h"
#include"theme-manager.h"
#include"util.h"
#include"gtkaccount.h"
#include"gtkblist.h"
#include"gtkcellrendererexpander.h"
#include"gtkconv.h"
#include"gtkdialogs.h"
#include"gtkxfer.h"
#include"gtkpounce.h"
#include"gtkprefs.h"
#include"gtkprivacy.h"
#include"gtkroomlist.h"
#include"gtkstatusbox.h"
#include"gtkscrollbook.h"
#include"gtksmiley-manager.h"
#include"gtkstyle.h"
#include"gtkblist-theme.h"
#include"gtkblist-theme-loader.h"
#include"gtkutils.h"
#include"pidgin/minidialog.h"
#include"pidgin/pidginabout.h"
#include"pidgin/pidginaccountchooser.h"
#include"pidgin/pidgindebug.h"
#include"pidgin/pidgingdkpixbuf.h"
#include"pidgin/pidginlog.h"
#include"pidgin/pidginplugininfo.h"
#include"pidgin/pidginpluginsdialog.h"
#include"pidgin/pidgintooltip.h"
#include"pidginmenutray.h"
#include<gdk/gdkkeysyms.h>
#include<gtk/gtk.h>
#include<gdk/gdk.h>
typedefstruct
{
PurpleAccount*account;
GtkWidget*window;
GtkBox*vbox;
GtkWidget*account_menu;
GtkSizeGroup*sg;
}PidginBlistRequestData;
typedefstruct
{
PidginBlistRequestDatarq_data;
GtkWidget*combo;
GtkWidget*entry;
GtkWidget*entry_for_alias;
GtkWidget*entry_for_invite;
}PidginAddBuddyData;
typedefstruct
{
PidginBlistRequestDatarq_data;
gchar*default_chat_name;
GList*entries;
}PidginChatData;
typedefstruct
{
PidginChatDatachat_data;
GtkWidget*alias_entry;
GtkWidget*group_combo;
GtkWidget*autojoin;
GtkWidget*persistent;
}PidginAddChatData;
typedefstruct
{
/* GBoxed reference count */
intbox_count;
/* Used to hold error minidialogs. Gets packed
* inside PidginBuddyList.error_buttons
*/
PidginScrollBook*error_scrollbook;
/* Pointer to the mini-dialog about having signed on elsewhere, if one
char*msg=g_strdup_printf(ngettext("You have %d contact named %s. Would you like to merge them?","You currently have %d contacts named %s. Would you like to merge them?",i),i,alias);
purple_request_action(NULL,NULL,msg,_("Merging these contacts will cause them to share a single entry on the buddy list and use a single conversation window. "
"You can separate them again by choosing 'Expand' from the contact's context menu"),0,NULL,