Make pidgin use report_disconnect_reason rather than report_disconnect, and
check purple_connection_reason_is_fatal rather than wants_to_die. (NB. Since
none of the protocols use error_reason yet, purple_connection_reason_is_fatal
is always true for now...)
/*
* @file gtkimhtml.c GTK+ IMHtml
* @ingroup pidgin
*
* 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
* 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
*
*/
#ifdef HAVE_CONFIG_H
#include<config.h>
#endif
#include"internal.h"
#include"pidgin.h"
#include"debug.h"
#include"util.h"
#include"gtkimhtml.h"
#include"gtksourceiter.h"
#include"gtksourceundomanager.h"
#include"gtksourceview-marshal.h"
#include<gtk/gtk.h>
#include<glib/gerror.h>
#include<gdk/gdkkeysyms.h>
#include<string.h>
#include<ctype.h>
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#ifdef HAVE_LANGINFO_CODESET
#include<langinfo.h>
#include<locale.h>
#endif
#ifdef _WIN32
#include<gdk/gdkwin32.h>
#include<windows.h>
#endif
#include<pango/pango-font.h>
/* GTK+ < 2.4.x hack, see pidgin.h for details. */
[20:00] <KingAnt> marv: Where the ID is the what is returned when you add the image to the imgstore using purple_imgstore_add
[20:00] <marv> Robot101: so how does the image get passed to serv_got_im() and serv_send_im()? just as the <img id="#" and then the prpl looks it up from the store?
[20:00] <KingAnt> marv: Right
[20:00] <marv> alright
Here's my plan with IMImages. make gtk_imhtml_[append|insert]_text_with_images instead just
gtkimhtml_[append|insert]_text (hrm maybe it should be called html instead of text), add a
function for purple to register for look up images, i.e. gtk_imhtml_set_get_img_fnc, so that
images can be looked up like that, instead of passing a GSList of them.