changeset 7787:666f672a869a

[gaim-migrate @ 8432] cleaner compiles mean correct code, right? :-P committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 07 Dec 2003 16:29:44 +0000
parents 203a18e56dc6
children 6741cac0bf52
files src/gtkimhtml.c
diffstat 1 files changed, 12 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sun Dec 07 16:28:34 2003 +0000
+++ b/src/gtkimhtml.c	Sun Dec 07 16:29:44 2003 +0000
@@ -60,6 +60,7 @@
 #define TOOLTIP_TIMEOUT 500
 
 static void insert_cb(GtkTextBuffer *buffer, GtkTextIter *iter, gchar *text, gint len, GtkIMHtml *imhtml);
+void gtk_imhtml_close_tags(GtkIMHtml *imhtml);
 
 /* POINT_SIZE converts from AIM font sizes to point sizes.  It probably should be redone in such a
  * way that it base the sizes off the default font size rather than using arbitrary font sizes. */
@@ -380,7 +381,7 @@
 		g_string_free(str, TRUE);
 		g_free(selection);
 	} else {
-		text = gtk_text_buffer_get_text(imhtml, &start, &end, FALSE);
+		text = gtk_text_buffer_get_text(imhtml->text_buffer, &start, &end, FALSE);
 		gtk_selection_data_set_text(selection_data, text, strlen(text));
 	}
 	g_free(text);
@@ -1112,14 +1113,14 @@
 	NEW_SCALABLE_BIT
 } GtkIMHtmlBitType;
 
-static inline new_bit(GtkIMHtml *imhtml, GtkTextIter *iter, GtkIMHtmlBitType x, char *ws, int *wpos)
+static inline void new_bit(GtkIMHtml *imhtml, GtkTextIter *iter, GtkIMHtmlBitType x, char *ws, int *wpos)
 {
 	GtkTextMark *mark2;
 	GtkTextIter siter;
 	GtkIMHtmlScalable *scalable = NULL;
 
 	ws [*wpos] = '\0'; 
-	mark2 = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, &iter, TRUE);
+	mark2 = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE);
 	gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, -1);
 
 	gtk_text_buffer_delete_mark(imhtml->text_buffer, mark2);
@@ -1171,14 +1172,14 @@
 	*wpos = 0;
 	ws[0] = 0;
 	gtk_text_buffer_get_end_iter(imhtml->text_buffer, iter);
-	if (x == NEW_SCALABLE_BIT) { 
-		GdkRectangle rect; 
-		gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); 
-		scalable->add_to(scalable, imhtml, &iter); 
-		scalable->scale(scalable, rect.width, rect.height); 
-		imhtml->scalables = g_list_append(imhtml->scalables, scalable); 
-		gtk_text_buffer_get_end_iter(imhtml->text_buffer, iter); 
-	} 
+	if (x == NEW_SCALABLE_BIT) {
+		GdkRectangle rect;
+		gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect);
+		scalable->add_to(scalable, imhtml, iter);
+		scalable->scale(scalable, rect.width, rect.height);
+		imhtml->scalables = g_list_append(imhtml->scalables, scalable);
+		gtk_text_buffer_get_end_iter(imhtml->text_buffer, iter);
+	}
 }