soc.2009.webkitmessageview: c4a9d3c1: cleaning up code.

tdrhq at soc.pidgin.im tdrhq at soc.pidgin.im
Tue Aug 25 12:04:28 EDT 2009


-----------------------------------------------------------------
Revision: c4a9d3c1001b23a9ac68c0a22a1a8355b984a946
Ancestor: c1b0d03fa774e8f561c83ba096c631c7c3e19bc8
Author: tdrhq at soc.pidgin.im
Date: 2009-08-07T18:38:31
Branch: im.pidgin.soc.2009.webkitmessageview
URL: http://d.pidgin.im/viewmtn/revision/info/c4a9d3c1001b23a9ac68c0a22a1a8355b984a946

Modified files:
        pidgin/gtkwebview.c

ChangeLog: 

cleaning up code.

-------------- next part --------------
============================================================
--- pidgin/gtkwebview.c	8a80ff617403f1c01ca8762c53ddc22de3df8092
+++ pidgin/gtkwebview.c	3d307ddc4f2a769f229ab70f0ee7f43c3c1933a5
@@ -1,4 +1,34 @@
+/*
+ * @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>
 #include <glib.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*
 }
 
 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 @@ replace_img_id_with_src (GtkWebView *vie
 		/* 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);
 }


More information about the Commits mailing list