patches/gtkhtml-01-insert-html.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 17746 963ea5d3b876
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17746
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     1
diff --git a/components/editor/gtkhtml-editor-actions.c b/components/editor/gtkhtml-editor-actions.c
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     2
index e495fca..aab7761 100644
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     3
--- a/components/editor/gtkhtml-editor-actions.c
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     4
+++ b/components/editor/gtkhtml-editor-actions.c
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     5
@@ -173,7 +173,7 @@ insert_html_file_ready_cb (GFile *file,
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     6
 	stream = gtk_html_begin (new_html);
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     7
 	gtk_html_write (html, stream, contents, length);
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     8
 	gtk_html_end (html, stream, GTK_HTML_STREAM_OK);
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     9
-	g_object_unref (stream);
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    10
+	gtk_html_stream_destroy (stream);
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    11
 
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    12
 	g_free (contents);
963ea5d3b876 2010-03-25 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    13