diff options
author | Havoc Pennington <hp@redhat.com> | 2000-11-03 23:31:06 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-11-03 23:31:06 +0000 |
commit | 6c9d8adc492685e8ac64b1e93ee05a5cca0293b4 (patch) | |
tree | 67a363869abd5109b9ec85b042bc4e7ad6cb8bbc /gtk/gtktextmark.c | |
parent | 42c519623ec3f05c2c8f37b70777f071e757e0e3 (diff) | |
download | gtk+-6c9d8adc492685e8ac64b1e93ee05a5cca0293b4.tar.gz |
Docs (gtk_text_tag_table_size): return a signed int
2000-11-03 Havoc Pennington <hp@redhat.com>
* gtk/gtktexttagtable.c: Docs
(gtk_text_tag_table_size): return a signed int
* gtk/gtktexttag.c: s/tkxt/text/g; write documentation
(gtk_text_tag_event): make the event_object a GObject
* gtk/gtktextview.c: Write API docs for all functions.
* gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
for gtk_text_view_get_window_type() called on one of the private
windows.
* gtk/gtktextview.c: Instead of accessing text_view->buffer
directly, call get_buffer() which demand-creates a default
buffer. So gtk_text_view_new() can be used to create a view with a
default buffer in it, if you just want an empty text box users can
put data in. Useful for GUI builders also.
Diffstat (limited to 'gtk/gtktextmark.c')
-rw-r--r-- | gtk/gtktextmark.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gtk/gtktextmark.c b/gtk/gtktextmark.c index bf2d1f2a07..13587007bc 100644 --- a/gtk/gtktextmark.c +++ b/gtk/gtktextmark.c @@ -127,6 +127,15 @@ gtk_text_mark_finalize (GObject *obj) } } +/** + * gtk_text_mark_is_visible: + * @mark: a #GtkTextMark + * + * Returns %TRUE if the mark is visible (i.e. a cursor is displayed + * for it) + * + * Return value: %TRUE if visible + **/ gboolean gtk_text_mark_is_visible (GtkTextMark *mark) { @@ -137,6 +146,14 @@ gtk_text_mark_is_visible (GtkTextMark *mark) return seg->body.mark.visible; } +/** + * gtk_text_mark_get_name: + * @mark: a #GtkTextMark + * + * Returns the mark name; returns NULL for anonymous marks. + * + * Return value: mark name + **/ const char * gtk_text_mark_get_name (GtkTextMark *mark) { @@ -147,6 +164,16 @@ gtk_text_mark_get_name (GtkTextMark *mark) return seg->body.mark.name; } +/** + * gtk_text_mark_get_deleted: + * @mark: a #GtkTextMark + * + * Returns %TRUE if the mark has been removed from its buffer + * with gtk_text_buffer_delete_mark(). Marks can't be used + * once deleted. + * + * Return value: whether the mark is deleted + **/ gboolean gtk_text_mark_get_deleted (GtkTextMark *mark) { |