gtk2/docs/reference/gtk/tmpl/gtktextbuffer.sgml

975 lines
13 KiB
Plaintext
Raw Normal View History

<!-- ##### SECTION Title ##### -->
GtkTextBuffer
<!-- ##### SECTION Short_Description ##### -->
Stores attributed text for display in a GtkTextView
<!-- ##### SECTION Long_Description ##### -->
Re-enable the "find" dialog 2000-10-23 Havoc Pennington <hp@redhat.com> * gtk/testtext.c: Re-enable the "find" dialog * gtk/testgtk.c: Add test for gdk_drawable_get_image * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where the arguments to gdk_draw_drawable were in the wrong order (gdk_window_paint_init_bg): This function was ignoring the init_region, instead of clipping to it, so the entire backing pixmap was cleared on every begin_paint() (gdk_window_begin_paint_region): Hmm, the same list-walking bug was in here again, the loop kept using the same GtkWindowPaint over and over. (gdk_window_begin_paint_region): Fix a bug where we had two x_offset instead of x_offset and y_offset * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable before we get the image. (gdk_draw_drawable): get the composite before we draw the drawable. (gdk_drawable_real_get_composite_drawable): default get_composite_drawable implementation that returns the drawable itself * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add get_composite_drawable virtual function * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy list-walking bug * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to make this work if the source drawable is a GdkDrawableImplX11 instead of a public drawable type. This is really broken; the problem is that GdkDrawable needs a virtual method get_xid(), but of course that doesn't work in practice. Enter RTTI. Also, improve mismatched depth message. * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for GdkPixmap * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init): install _gdk_x11_get_image as our implementation of get_image * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to _gdk_x11_get_image and export for use in gdkdrawable-x11.c * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around gdk_drawable_get_image * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize get_image * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird trailing semicolon after for loop
2000-10-24 00:15:14 +00:00
<para>
You may wish to begin by reading the <link linkend="TextWidget">text widget
conceptual overview</link> which gives an overview of all the objects and data
types related to the text widget and how they work together.
</para>
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
Re-enable the "find" dialog 2000-10-23 Havoc Pennington <hp@redhat.com> * gtk/testtext.c: Re-enable the "find" dialog * gtk/testgtk.c: Add test for gdk_drawable_get_image * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where the arguments to gdk_draw_drawable were in the wrong order (gdk_window_paint_init_bg): This function was ignoring the init_region, instead of clipping to it, so the entire backing pixmap was cleared on every begin_paint() (gdk_window_begin_paint_region): Hmm, the same list-walking bug was in here again, the loop kept using the same GtkWindowPaint over and over. (gdk_window_begin_paint_region): Fix a bug where we had two x_offset instead of x_offset and y_offset * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable before we get the image. (gdk_draw_drawable): get the composite before we draw the drawable. (gdk_drawable_real_get_composite_drawable): default get_composite_drawable implementation that returns the drawable itself * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add get_composite_drawable virtual function * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy list-walking bug * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to make this work if the source drawable is a GdkDrawableImplX11 instead of a public drawable type. This is really broken; the problem is that GdkDrawable needs a virtual method get_xid(), but of course that doesn't work in practice. Enter RTTI. Also, improve mismatched depth message. * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for GdkPixmap * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init): install _gdk_x11_get_image as our implementation of get_image * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to _gdk_x11_get_image and export for use in gdkdrawable-x11.c * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around gdk_drawable_get_image * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize get_image * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird trailing semicolon after for loop
2000-10-24 00:15:14 +00:00
#GtkTextView, #GtkTextIter, #GtkTextMark
</para>
2005-06-20 22:06:27 +00:00
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### SECTION Image ##### -->
<!-- ##### STRUCT GtkTextBuffer ##### -->
<para>
</para>
<!-- ##### SIGNAL GtkTextBuffer::apply-tag ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
@arg2:
@arg3:
<!-- ##### SIGNAL GtkTextBuffer::begin-user-action ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
<!-- ##### SIGNAL GtkTextBuffer::changed ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
<!-- ##### SIGNAL GtkTextBuffer::delete-range ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
@arg2:
<!-- ##### SIGNAL GtkTextBuffer::end-user-action ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
<!-- ##### SIGNAL GtkTextBuffer::insert-child-anchor ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
@arg2:
<!-- ##### SIGNAL GtkTextBuffer::insert-pixbuf ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
@arg2:
<!-- ##### SIGNAL GtkTextBuffer::insert-text ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
@arg2:
@arg3:
<!-- ##### SIGNAL GtkTextBuffer::mark-deleted ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
<!-- ##### SIGNAL GtkTextBuffer::mark-set ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
@arg2:
<!-- ##### SIGNAL GtkTextBuffer::modified-changed ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
<!-- ##### SIGNAL GtkTextBuffer::paste-done ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
<!-- ##### SIGNAL GtkTextBuffer::remove-tag ##### -->
<para>
</para>
@textbuffer: the object which received the signal.
@arg1:
@arg2:
@arg3:
2006-05-05 16:21:19 +00:00
<!-- ##### ARG GtkTextBuffer:copy-target-list ##### -->
<para>
</para>
2006-05-17 00:33:57 +00:00
<!-- ##### ARG GtkTextBuffer:cursor-position ##### -->
<para>
</para>
2005-12-20 05:47:43 +00:00
<!-- ##### ARG GtkTextBuffer:has-selection ##### -->
<para>
</para>
2006-05-05 16:21:19 +00:00
<!-- ##### ARG GtkTextBuffer:paste-target-list ##### -->
<para>
</para>
<!-- ##### ARG GtkTextBuffer:tag-table ##### -->
<para>
</para>
2005-06-20 22:06:27 +00:00
<!-- ##### ARG GtkTextBuffer:text ##### -->
<para>
</para>
<!-- ##### FUNCTION gtk_text_buffer_new ##### -->
<para>
</para>
@table:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_line_count ##### -->
<para>
</para>
@buffer:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_char_count ##### -->
<para>
</para>
@buffer:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_tag_table ##### -->
<para>
</para>
@buffer:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_insert ##### -->
<para>
</para>
@buffer:
@iter:
@text:
@len:
<!-- ##### FUNCTION gtk_text_buffer_insert_at_cursor ##### -->
<para>
</para>
@buffer:
@text:
@len:
<!-- ##### FUNCTION gtk_text_buffer_insert_interactive ##### -->
<para>
</para>
@buffer:
@iter:
@text:
@len:
@default_editable:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_insert_interactive_at_cursor ##### -->
<para>
</para>
@buffer:
@text:
@len:
@default_editable:
@Returns:
Some updates 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtk-sections.txt: Some updates * gdk/gdk-sections.txt: remove GdkPixbufAlphaMode * gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove GdkPixbufClass/GdkAnimationClass since those are private * gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug where any number of empty lines would get skipped * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the edge. * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the warning about invalid iterators (explain more thoroughly) (gtk_text_iter_in_region): rename gtk_text_iter_in_range * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less big * demos/*.c: Add error handling * gtk/gtktextbuffer.c: don't modify const iterators * gtk/gdk-pixbuf-loader.c: Add full error handling here * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors on file load * gtk/gtkiconfactory.c: Update to reflect addition of error handling to gdk-pixbuf loaders 2000-10-16 Havoc Pennington <hp@redhat.com> * gdk-pixbuf-io.c (gdk_pixbuf_get_module) (gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module): add error reporting here also * make-inline-pixbuf.c (main): use GError * io-xpm.c: include unistd.h * gdk-pixbuf-util.c: include string.h * io-*.c: add error reporting * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add error reporting * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting * gdk-pixbuf-io.h: Add GError** to load_increment and load methods * gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return a G_FILE_ERROR if we fail to write or close the file. * gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following the GError naming rules. Add GError** to load functions.
2000-10-18 18:42:54 +00:00
<!-- ##### FUNCTION gtk_text_buffer_insert_range ##### -->
<para>
</para>
@buffer:
@iter:
@start:
@end:
<!-- ##### FUNCTION gtk_text_buffer_insert_range_interactive ##### -->
<para>
</para>
@buffer:
@iter:
@start:
@end:
@default_editable:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_insert_with_tags ##### -->
<para>
</para>
@buffer:
@iter:
@text:
@len:
@first_tag:
@Varargs:
<!-- ##### FUNCTION gtk_text_buffer_insert_with_tags_by_name ##### -->
<para>
</para>
@buffer:
@iter:
@text:
@len:
@first_tag_name:
@Varargs:
<!-- ##### FUNCTION gtk_text_buffer_delete ##### -->
<para>
</para>
@buffer:
@start:
@end:
<!-- ##### FUNCTION gtk_text_buffer_delete_interactive ##### -->
<para>
</para>
@buffer:
@start_iter:
@end_iter:
@default_editable:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_backspace ##### -->
<para>
</para>
@buffer:
@iter:
@interactive:
@default_editable:
@Returns:
Some updates 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtk-sections.txt: Some updates * gdk/gdk-sections.txt: remove GdkPixbufAlphaMode * gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove GdkPixbufClass/GdkAnimationClass since those are private * gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug where any number of empty lines would get skipped * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the edge. * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the warning about invalid iterators (explain more thoroughly) (gtk_text_iter_in_region): rename gtk_text_iter_in_range * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less big * demos/*.c: Add error handling * gtk/gtktextbuffer.c: don't modify const iterators * gtk/gdk-pixbuf-loader.c: Add full error handling here * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors on file load * gtk/gtkiconfactory.c: Update to reflect addition of error handling to gdk-pixbuf loaders 2000-10-16 Havoc Pennington <hp@redhat.com> * gdk-pixbuf-io.c (gdk_pixbuf_get_module) (gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module): add error reporting here also * make-inline-pixbuf.c (main): use GError * io-xpm.c: include unistd.h * gdk-pixbuf-util.c: include string.h * io-*.c: add error reporting * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add error reporting * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting * gdk-pixbuf-io.h: Add GError** to load_increment and load methods * gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return a G_FILE_ERROR if we fail to write or close the file. * gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following the GError naming rules. Add GError** to load functions.
2000-10-18 18:42:54 +00:00
<!-- ##### FUNCTION gtk_text_buffer_set_text ##### -->
<para>
</para>
@buffer:
@text:
@len:
<!-- ##### FUNCTION gtk_text_buffer_get_text ##### -->
<para>
</para>
@buffer:
@start:
@end:
@include_hidden_chars:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_slice ##### -->
<para>
</para>
@buffer:
@start:
@end:
@include_hidden_chars:
@Returns:
Some updates 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtk-sections.txt: Some updates * gdk/gdk-sections.txt: remove GdkPixbufAlphaMode * gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove GdkPixbufClass/GdkAnimationClass since those are private * gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug where any number of empty lines would get skipped * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the edge. * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the warning about invalid iterators (explain more thoroughly) (gtk_text_iter_in_region): rename gtk_text_iter_in_range * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less big * demos/*.c: Add error handling * gtk/gtktextbuffer.c: don't modify const iterators * gtk/gdk-pixbuf-loader.c: Add full error handling here * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors on file load * gtk/gtkiconfactory.c: Update to reflect addition of error handling to gdk-pixbuf loaders 2000-10-16 Havoc Pennington <hp@redhat.com> * gdk-pixbuf-io.c (gdk_pixbuf_get_module) (gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module): add error reporting here also * make-inline-pixbuf.c (main): use GError * io-xpm.c: include unistd.h * gdk-pixbuf-util.c: include string.h * io-*.c: add error reporting * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add error reporting * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting * gdk-pixbuf-io.h: Add GError** to load_increment and load methods * gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return a G_FILE_ERROR if we fail to write or close the file. * gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following the GError naming rules. Add GError** to load functions.
2000-10-18 18:42:54 +00:00
<!-- ##### FUNCTION gtk_text_buffer_insert_pixbuf ##### -->
<para>
</para>
@buffer:
@iter:
Some updates 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtk-sections.txt: Some updates * gdk/gdk-sections.txt: remove GdkPixbufAlphaMode * gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove GdkPixbufClass/GdkAnimationClass since those are private * gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug where any number of empty lines would get skipped * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the edge. * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the warning about invalid iterators (explain more thoroughly) (gtk_text_iter_in_region): rename gtk_text_iter_in_range * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less big * demos/*.c: Add error handling * gtk/gtktextbuffer.c: don't modify const iterators * gtk/gdk-pixbuf-loader.c: Add full error handling here * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors on file load * gtk/gtkiconfactory.c: Update to reflect addition of error handling to gdk-pixbuf loaders 2000-10-16 Havoc Pennington <hp@redhat.com> * gdk-pixbuf-io.c (gdk_pixbuf_get_module) (gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module): add error reporting here also * make-inline-pixbuf.c (main): use GError * io-xpm.c: include unistd.h * gdk-pixbuf-util.c: include string.h * io-*.c: add error reporting * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add error reporting * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting * gdk-pixbuf-io.h: Add GError** to load_increment and load methods * gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return a G_FILE_ERROR if we fail to write or close the file. * gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following the GError naming rules. Add GError** to load functions.
2000-10-18 18:42:54 +00:00
@pixbuf:
<!-- ##### FUNCTION gtk_text_buffer_insert_child_anchor ##### -->
<para>
</para>
@buffer:
@iter:
@anchor:
<!-- ##### FUNCTION gtk_text_buffer_create_child_anchor ##### -->
<para>
</para>
@buffer:
@iter:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_create_mark ##### -->
<para>
</para>
@buffer:
@mark_name:
@where:
@left_gravity:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_move_mark ##### -->
<para>
</para>
@buffer:
@mark:
@where:
<!-- ##### FUNCTION gtk_text_buffer_move_mark_by_name ##### -->
<para>
</para>
@buffer:
@name:
@where:
<!-- ##### FUNCTION gtk_text_buffer_add_mark ##### -->
<para>
</para>
@buffer:
@mark:
@where:
<!-- ##### FUNCTION gtk_text_buffer_delete_mark ##### -->
<para>
</para>
@buffer:
@mark:
Some updates 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtk-sections.txt: Some updates * gdk/gdk-sections.txt: remove GdkPixbufAlphaMode * gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove GdkPixbufClass/GdkAnimationClass since those are private * gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug where any number of empty lines would get skipped * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the edge. * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the warning about invalid iterators (explain more thoroughly) (gtk_text_iter_in_region): rename gtk_text_iter_in_range * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less big * demos/*.c: Add error handling * gtk/gtktextbuffer.c: don't modify const iterators * gtk/gdk-pixbuf-loader.c: Add full error handling here * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors on file load * gtk/gtkiconfactory.c: Update to reflect addition of error handling to gdk-pixbuf loaders 2000-10-16 Havoc Pennington <hp@redhat.com> * gdk-pixbuf-io.c (gdk_pixbuf_get_module) (gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module): add error reporting here also * make-inline-pixbuf.c (main): use GError * io-xpm.c: include unistd.h * gdk-pixbuf-util.c: include string.h * io-*.c: add error reporting * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add error reporting * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting * gdk-pixbuf-io.h: Add GError** to load_increment and load methods * gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return a G_FILE_ERROR if we fail to write or close the file. * gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following the GError naming rules. Add GError** to load functions.
2000-10-18 18:42:54 +00:00
<!-- ##### FUNCTION gtk_text_buffer_delete_mark_by_name ##### -->
<para>
</para>
@buffer:
@name:
<!-- ##### FUNCTION gtk_text_buffer_get_mark ##### -->
<para>
</para>
@buffer:
@name:
@Returns:
Some updates 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtk-sections.txt: Some updates * gdk/gdk-sections.txt: remove GdkPixbufAlphaMode * gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove GdkPixbufClass/GdkAnimationClass since those are private * gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug where any number of empty lines would get skipped * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the edge. * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the warning about invalid iterators (explain more thoroughly) (gtk_text_iter_in_region): rename gtk_text_iter_in_range * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less big * demos/*.c: Add error handling * gtk/gtktextbuffer.c: don't modify const iterators * gtk/gdk-pixbuf-loader.c: Add full error handling here * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors on file load * gtk/gtkiconfactory.c: Update to reflect addition of error handling to gdk-pixbuf loaders 2000-10-16 Havoc Pennington <hp@redhat.com> * gdk-pixbuf-io.c (gdk_pixbuf_get_module) (gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module): add error reporting here also * make-inline-pixbuf.c (main): use GError * io-xpm.c: include unistd.h * gdk-pixbuf-util.c: include string.h * io-*.c: add error reporting * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add error reporting * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting * gdk-pixbuf-io.h: Add GError** to load_increment and load methods * gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return a G_FILE_ERROR if we fail to write or close the file. * gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following the GError naming rules. Add GError** to load functions.
2000-10-18 18:42:54 +00:00
<!-- ##### FUNCTION gtk_text_buffer_get_insert ##### -->
<para>
</para>
@buffer:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_selection_bound ##### -->
<para>
</para>
@buffer:
@Returns:
2005-12-20 05:47:43 +00:00
<!-- ##### FUNCTION gtk_text_buffer_get_has_selection ##### -->
<para>
</para>
@buffer:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_place_cursor ##### -->
<para>
</para>
@buffer:
@where:
<!-- ##### FUNCTION gtk_text_buffer_select_range ##### -->
<para>
</para>
@buffer:
@ins:
@bound:
<!-- ##### FUNCTION gtk_text_buffer_apply_tag ##### -->
<para>
</para>
@buffer:
@tag:
@start:
@end:
<!-- ##### FUNCTION gtk_text_buffer_remove_tag ##### -->
<para>
</para>
@buffer:
@tag:
@start:
@end:
<!-- ##### FUNCTION gtk_text_buffer_apply_tag_by_name ##### -->
<para>
</para>
@buffer:
@name:
@start:
@end:
<!-- ##### FUNCTION gtk_text_buffer_remove_tag_by_name ##### -->
<para>
</para>
@buffer:
@name:
@start:
@end:
<!-- ##### FUNCTION gtk_text_buffer_remove_all_tags ##### -->
<para>
</para>
@buffer:
@start:
@end:
<!-- ##### FUNCTION gtk_text_buffer_create_tag ##### -->
<para>
</para>
@buffer:
@tag_name:
@first_property_name:
@Varargs:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_iter_at_line_offset ##### -->
<para>
</para>
@buffer:
@iter:
@line_number:
@char_offset:
<!-- ##### FUNCTION gtk_text_buffer_get_iter_at_offset ##### -->
<para>
</para>
@buffer:
@iter:
@char_offset:
<!-- ##### FUNCTION gtk_text_buffer_get_iter_at_line ##### -->
<para>
</para>
@buffer:
@iter:
@line_number:
<!-- ##### FUNCTION gtk_text_buffer_get_iter_at_line_index ##### -->
<para>
</para>
@buffer:
@iter:
@line_number:
@byte_index:
<!-- ##### FUNCTION gtk_text_buffer_get_iter_at_mark ##### -->
<para>
</para>
@buffer:
@iter:
@mark:
<!-- ##### FUNCTION gtk_text_buffer_get_iter_at_child_anchor ##### -->
<para>
</para>
@buffer:
@iter:
@anchor:
<!-- ##### FUNCTION gtk_text_buffer_get_start_iter ##### -->
<para>
</para>
@buffer:
@iter:
<!-- ##### FUNCTION gtk_text_buffer_get_end_iter ##### -->
<para>
</para>
@buffer:
@iter:
<!-- ##### FUNCTION gtk_text_buffer_get_bounds ##### -->
<para>
</para>
@buffer:
@start:
@end:
<!-- ##### FUNCTION gtk_text_buffer_get_modified ##### -->
<para>
</para>
@buffer:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_set_modified ##### -->
<para>
</para>
@buffer:
@setting:
<!-- ##### FUNCTION gtk_text_buffer_delete_selection ##### -->
<para>
</para>
@buffer:
@interactive:
@default_editable:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_paste_clipboard ##### -->
<para>
</para>
@buffer:
@clipboard:
@override_location:
Some updates 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtk-sections.txt: Some updates * gdk/gdk-sections.txt: remove GdkPixbufAlphaMode * gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove GdkPixbufClass/GdkAnimationClass since those are private * gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers 2000-10-18 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug where any number of empty lines would get skipped * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the edge. * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the warning about invalid iterators (explain more thoroughly) (gtk_text_iter_in_region): rename gtk_text_iter_in_range * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less big * demos/*.c: Add error handling * gtk/gtktextbuffer.c: don't modify const iterators * gtk/gdk-pixbuf-loader.c: Add full error handling here * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors on file load * gtk/gtkiconfactory.c: Update to reflect addition of error handling to gdk-pixbuf loaders 2000-10-16 Havoc Pennington <hp@redhat.com> * gdk-pixbuf-io.c (gdk_pixbuf_get_module) (gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module): add error reporting here also * make-inline-pixbuf.c (main): use GError * io-xpm.c: include unistd.h * gdk-pixbuf-util.c: include string.h * io-*.c: add error reporting * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add error reporting * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting * gdk-pixbuf-io.h: Add GError** to load_increment and load methods * gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return a G_FILE_ERROR if we fail to write or close the file. * gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following the GError naming rules. Add GError** to load functions.
2000-10-18 18:42:54 +00:00
@default_editable:
<!-- ##### FUNCTION gtk_text_buffer_copy_clipboard ##### -->
<para>
</para>
@buffer:
@clipboard:
<!-- ##### FUNCTION gtk_text_buffer_cut_clipboard ##### -->
<para>
</para>
@buffer:
@clipboard:
@default_editable:
<!-- ##### FUNCTION gtk_text_buffer_get_selection_bounds ##### -->
<para>
</para>
@buffer:
@start:
@end:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_begin_user_action ##### -->
<para>
</para>
@buffer:
<!-- ##### FUNCTION gtk_text_buffer_end_user_action ##### -->
<para>
</para>
@buffer:
<!-- ##### FUNCTION gtk_text_buffer_add_selection_clipboard ##### -->
<para>
</para>
@buffer:
@clipboard:
<!-- ##### FUNCTION gtk_text_buffer_remove_selection_clipboard ##### -->
<para>
</para>
@buffer:
@clipboard:
2006-05-05 16:21:19 +00:00
<!-- ##### ENUM GtkTextBufferTargetInfo ##### -->
<para>
</para>
@GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS:
@GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT:
@GTK_TEXT_BUFFER_TARGET_INFO_TEXT:
<!-- ##### USER_FUNCTION GtkTextBufferDeserializeFunc ##### -->
<para>
A function that is called to deserialize rich text that has been
serialized with gtk_text_buffer_serialize(), and insert it at @iter.
2006-05-05 16:21:19 +00:00
</para>
@register_buffer: the #GtkTextBuffer the format is registered with
@content_buffer: the #GtkTextBuffer to deserialize into
@iter: insertion point for the deserialized text
@data: data to deserialize
@length: length of %data
@create_tags: %TRUE if deserializing may create tags
@user_data: user data that was specified when registering the format
@error: return location for a #GError
@Returns: %TRUE on success, %FALSE otherwise
2006-05-05 16:21:19 +00:00
<!-- ##### FUNCTION gtk_text_buffer_deserialize ##### -->
<para>
</para>
@register_buffer:
@content_buffer:
@format:
@iter:
@data:
@length:
@error:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_deserialize_get_can_create_tags ##### -->
<para>
</para>
@buffer:
@format:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_deserialize_set_can_create_tags ##### -->
<para>
</para>
@buffer:
@format:
@can_create_tags:
<!-- ##### FUNCTION gtk_text_buffer_get_copy_target_list ##### -->
<para>
</para>
@buffer:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_deserialize_formats ##### -->
<para>
</para>
@buffer:
@n_formats:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_paste_target_list ##### -->
<para>
</para>
@buffer:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_get_serialize_formats ##### -->
<para>
</para>
@buffer:
@n_formats:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_register_deserialize_format ##### -->
<para>
</para>
@buffer:
@mime_type:
@function:
@user_data:
@user_data_destroy:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_register_deserialize_tagset ##### -->
<para>
</para>
@buffer:
@tagset_name:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_register_serialize_format ##### -->
<para>
</para>
@buffer:
@mime_type:
@function:
@user_data:
@user_data_destroy:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_register_serialize_tagset ##### -->
<para>
</para>
@buffer:
@tagset_name:
@Returns:
<!-- ##### USER_FUNCTION GtkTextBufferSerializeFunc ##### -->
<para>
A function that is called to serialize the content of a text buffer.
It must return the serialized form of the content.
2006-05-05 16:21:19 +00:00
</para>
@register_buffer: the #GtkTextBuffer for which the format is registered
2011-01-06 14:06:24 +00:00
@content_buffer: the #GtkTextBuffer to serialize
@start: start of the block of text to serialize
@end: end of the block of text to serialize
@length: Return location for the length of the serialized data
@user_data: user data that was specified when registering the format
@Returns: a newly-allocated array of guint8 which contains the serialized
data, or %NULL if an error occurred
2006-05-05 16:21:19 +00:00
<!-- ##### FUNCTION gtk_text_buffer_serialize ##### -->
<para>
</para>
@register_buffer:
@content_buffer:
@format:
@start:
@end:
@length:
@Returns:
<!-- ##### FUNCTION gtk_text_buffer_unregister_deserialize_format ##### -->
<para>
</para>
@buffer:
@format:
<!-- ##### FUNCTION gtk_text_buffer_unregister_serialize_format ##### -->
<para>
</para>
@buffer:
@format: