# HG changeset patch # User tdrhq@soc.pidgin.im # Date 1249670311 0 # Node ID a2fd5f08ed49920a1223a3ee97dbd7a5dcb00058 # Parent d0be198c46947372fc64147a892c0eb02f25fbf8 cleaning up code. diff -r d0be198c4694 -r a2fd5f08ed49 pidgin/gtkwebview.c --- a/pidgin/gtkwebview.c Fri Aug 07 18:29:52 2009 +0000 +++ b/pidgin/gtkwebview.c Fri Aug 07 18:38:31 2009 +0000 @@ -1,3 +1,33 @@ +/* + * @file gtkwebview.c GTK+ WebKitWebView wrapper class. + * @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 +#endif #include #include @@ -7,6 +37,7 @@ #include "util.h" #include "gtkwebview.h" +#include "imgstore.h" static WebKitWebViewClass *parent_class = NULL; @@ -16,7 +47,7 @@ } static char* -get_img_filename_by_id (GtkWebView* view, int id) +get_image_filename_from_id (GtkWebView* view, int id) { char *filename = NULL; FILE *file; @@ -101,7 +132,7 @@ /* let's dump this, tag and then dump the src information */ g_string_append_len (buffer, img, cur - img); - g_string_append_printf (buffer, " src='file://%s' ", get_img_filename_by_id (view, nid)); + g_string_append_printf (buffer, " src='file://%s' ", get_image_filename_from_id (view, nid)); } return g_string_free (buffer, FALSE); }