changeset 32526:a2fd5f08ed49

cleaning up code.
author tdrhq@soc.pidgin.im
date Fri, 07 Aug 2009 18:38:31 +0000
parents d0be198c4694
children 2af29d62cfde
files pidgin/gtkwebview.c
diffstat 1 files changed, 33 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <config.h>
+#endif
 
 #include <ctype.h>
 #include <string.h>
@@ -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);
 }