X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtktextbufferrichtext.c;h=2c5d228daede2130bd328ebb33d55ec57f2c7322;hb=HEAD;hp=8db902f67309e1d60de23ffcbcb232624d1c2f14;hpb=5f1b5d24067468fc86b28dccc504c71abdaf68b8;p=~andy%2Fgtk diff --git a/gtk/gtktextbufferrichtext.c b/gtk/gtktextbufferrichtext.c index 8db902f67..2c5d228da 100644 --- a/gtk/gtktextbufferrichtext.c +++ b/gtk/gtktextbufferrichtext.c @@ -14,9 +14,7 @@ * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ #include "config.h" @@ -66,8 +64,8 @@ static GQuark deserialize_quark (void); * This function registers a rich text serialization @function along with * its @mime_type with the passed @buffer. * - * Return value: the #GdkAtom that corresponds to the newly registered - * format's mime-type. + * Return value: (transfer none): the #GdkAtom that corresponds to the + * newly registered format's mime-type. * * Since: 2.10 **/ @@ -123,8 +121,8 @@ gtk_text_buffer_register_serialize_format (GtkTextBuffer *buffer, * identifier != %NULL here, since the %NULL tagset requires the * receiving buffer to deal with with pasting of arbitrary tags. * - * Return value: the #GdkAtom that corresponds to the newly registered - * format's mime-type. + * Return value: (transfer none): the #GdkAtom that corresponds to the + * newly registered format's mime-type. * * Since: 2.10 **/ @@ -164,8 +162,8 @@ gtk_text_buffer_register_serialize_tagset (GtkTextBuffer *buffer, * This function registers a rich text deserialization @function along with * its @mime_type with the passed @buffer. * - * Return value: the #GdkAtom that corresponds to the newly registered - * format's mime-type. + * Return value: (transfer none): the #GdkAtom that corresponds to the + * newly registered format's mime-type. * * Since: 2.10 **/ @@ -207,8 +205,8 @@ gtk_text_buffer_register_deserialize_format (GtkTextBuffer *buffe * format with the passed @buffer. See * gtk_text_buffer_register_serialize_tagset() for details. * - * Return value: the #GdkAtom that corresponds to the newly registered - * format's mime-type. + * Return value: (transfer none): the #GdkAtom that corresponds to the + * newly registered format's mime-type. * * Since: 2.10 **/ @@ -408,8 +406,8 @@ gtk_text_buffer_deserialize_get_can_create_tags (GtkTextBuffer *buffer, * with @buffer using gtk_text_buffer_register_serialize_format() or * gtk_text_buffer_register_serialize_tagset() * - * Return value: an array of #GdkAtoms representing the registered - * formats. + * Return value: (array length=n_formats) (transfer container): an array of + * #GdkAtoms representing the registered formats. * * Since: 2.10 **/ @@ -436,8 +434,8 @@ gtk_text_buffer_get_serialize_formats (GtkTextBuffer *buffer, * with @buffer using gtk_text_buffer_register_deserialize_format() or * gtk_text_buffer_register_deserialize_tagset() * - * Return value: an array of #GdkAtoms representing the registered - * formats. + * Return value: (array length=n_formats) (transfer container): an array of + * #GdkAtoms representing the registered formats. * * Since: 2.10 **/ @@ -471,7 +469,8 @@ gtk_text_buffer_get_deserialize_formats (GtkTextBuffer *buffer, * gtk_text_buffer_register_serialize_format() or * gtk_text_buffer_register_serialize_tagset() beforehand. * - * Return value: the serialized data, encoded as @format + * Return value: (array length=length) (transfer full): the serialized + * data, encoded as @format * * Since: 2.10 **/ @@ -520,7 +519,7 @@ gtk_text_buffer_serialize (GtkTextBuffer *register_buffer, * @content_buffer: the #GtkTextBuffer to deserialize into * @format: the rich text format to use for deserializing * @iter: insertion point for the deserialized text - * @data: data to deserialize + * @data: (array length=length): data to deserialize * @length: length of @data * @error: return location for a #GError * @@ -796,8 +795,7 @@ free_format (GtkRichTextFormat *format) static void free_format_list (GList *formats) { - g_list_foreach (formats, (GFunc) free_format, NULL); - g_list_free (formats); + g_list_free_full (formats, (GDestroyNotify) free_format); } static GQuark