summaryrefslogtreecommitdiff
path: root/gtk/gtktextchild.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-01-01 23:51:00 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-01-01 23:51:00 +0000
commite7153de001f47adcba65c007b202dc583e21e09a (patch)
tree23d22f8141f417e7d9c4c6d5e78bf881db068da4 /gtk/gtktextchild.c
parentc8940d6fdc2d53bb7af432fed13574bb44b37605 (diff)
downloadgtk+-e7153de001f47adcba65c007b202dc583e21e09a.tar.gz
move README.linux-fb in here
2002-01-01 Havoc Pennington <hp@pobox.com> * gtk/framebuffer.sgml: move README.linux-fb in here * gtk/tmpl/gtkpreview.sgml: explain what to use instead * gtk/tmpl/gtkseparator.sgml: typo fix * gtk/tmpl/gtkstock.sgml: add some overview docs * gtk/Makefile.am (content_files): add new files * gtk/changes-1.2.sgml: move Changes-1.2.txt in here * gtk/changes-2.0.sgml: move Changes-2.0.txt in here * gdk/tmpl/threads.sgml: mention gdk_threads_init() in the overview docs, copy in the examples from the FAQ * gtk/gtk-docs.sgml: change DTD to 3.1, and add question_index.sgml and changes-1.2, changes-2.0 * gtk/tmpl/gtkdrawingarea.sgml: fixups to reflect 2.0 changes * gtk/question_index.sgml: new section with question-based index of the manual * gtk/text_widget.sgml: fix some cross-references 2002-01-01 Havoc Pennington <hp@pobox.com> * docs/README.linux-fb: note that this file is obsolete * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these files that they should not be edited and look in the reference manual instead. Probably these files should just be replaced by the note, and their main contents deleted. * gtk/gtktextview.c: docs * gtk/gtktextmark.c: docs * gtk/gtktextchild.c: docs * gtk/gtktextbuffer.c: docs stuff * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe give people more leads in sorting out PRIMARY vs. CLIPBOARD
Diffstat (limited to 'gtk/gtktextchild.c')
-rw-r--r--gtk/gtktextchild.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/gtk/gtktextchild.c b/gtk/gtktextchild.c
index 60bf424950..f22f10a79d 100644
--- a/gtk/gtktextchild.c
+++ b/gtk/gtktextchild.c
@@ -334,6 +334,16 @@ gtk_text_child_anchor_class_init (GtkTextChildAnchorClass *klass)
object_class->finalize = gtk_text_child_anchor_finalize;
}
+/**
+ * gtk_text_child_anchor_new:
+ *
+ * Creates a new #GtkTextChildAnchor. Usually you would then insert
+ * it into a #GtkTextBuffer with gtk_text_buffer_insert_child_anchor().
+ * To perform the creation and insertion in one step, use the
+ * convenience function gtk_text_buffer_create_child_anchor().
+ *
+ * Return value: a new #GtkTextChildAnchor
+ **/
GtkTextChildAnchor*
gtk_text_child_anchor_new (void)
{
@@ -375,6 +385,16 @@ gtk_text_child_anchor_finalize (GObject *obj)
anchor->segment = NULL;
}
+/**
+ * gtk_text_child_anchor_get_widgets:
+ * @anchor: a #GtkTextChildAnchor
+ *
+ * Gets a list of all widgets anchored at this child anchor.
+ * The returned list should be freed with g_list_free().
+ *
+ *
+ * Return value: list of widgets anchored at @anchor
+ **/
GList*
gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor)
{
@@ -398,6 +418,19 @@ gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor)
return list;
}
+/**
+ * gtk_text_child_anchor_get_deleted:
+ * @anchor: a #GtkTextChildAnchor
+ *
+ * Determines whether a child anchor has been deleted from
+ * the buffer. Keep in mind that the child anchor will be
+ * unreferenced when removed from the buffer, so you need to
+ * hold your own reference (with g_object_ref()) if you plan
+ * to use this function &mdash; otherwise all deleted child anchors
+ * will also be finalized.
+ *
+ * Return value: %TRUE if the child anchor has been deleted from its buffer
+ **/
gboolean
gtk_text_child_anchor_get_deleted (GtkTextChildAnchor *anchor)
{