summaryrefslogtreecommitdiff
path: root/gtk/gtktextbuffer.c
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2008-08-12 14:37:03 +0000
committerSven Neumann <neo@src.gnome.org>2008-08-12 14:37:03 +0000
commitb699ac5853f69f617bb1d388c8bb8a8c0d5347e9 (patch)
tree4b263d2d3867aa3f8ae0eca71d95c89f2f169556 /gtk/gtktextbuffer.c
parent3818f47eb9e41c8d90ea84c4b0fb412b6ef9e371 (diff)
downloadgtk+-b699ac5853f69f617bb1d388c8bb8a8c0d5347e9.tar.gz
gtk/gtkaccellabel.c gtk/gtkaction.c gtk/gtkclist.c gtk/gtkcolorbutton.c
2008-08-12 Sven Neumann <sven@gimp.org> * gtk/gtkaccellabel.c * gtk/gtkaction.c * gtk/gtkclist.c * gtk/gtkcolorbutton.c * gtk/gtkctree.c * gtk/gtkdialog.c * gtk/gtkdnd-quartz.c * gtk/gtkdnd.c * gtk/gtkentry.c * gtk/gtkfilechooserdefault.c * gtk/gtkfilesel.c * gtk/gtkgamma.c * gtk/gtkiconview.c * gtk/gtkkeyhash.c * gtk/gtklabel.c * gtk/gtkmenu.c * gtk/gtkmenubar.c * gtk/gtkpaned.c * gtk/gtkrecentchooserdialog.c * gtk/gtkrecentchooserutils.c * gtk/gtkselection.c * gtk/gtksizegroup.c * gtk/gtktextbtree.c * gtk/gtktextbuffer.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtktreemodel.c * gtk/gtkuimanager.c * gtk/gtkwindow-decorate.c * gtk/gtkwindow.c: use canonical signal names in some more places that I missed earlier. Also changed this in the documentation and comments. svn path=/trunk/; revision=21094
Diffstat (limited to 'gtk/gtktextbuffer.c')
-rw-r--r--gtk/gtktextbuffer.c53
1 files changed, 27 insertions, 26 deletions
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index 3b77f3a751..264839b7d1 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -270,7 +270,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* @text: the UTF-8 text to be inserted
* @len: length of the inserted text in bytes
*
- * The insert_text signal is emitted to insert text in a #GtkTextBuffer.
+ * The ::insert-text signal is emitted to insert text in a #GtkTextBuffer.
* Insertion actually occurs in the default handler.
*
* Note that if your handler runs before the default handler it must not
@@ -301,7 +301,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* @location: position to insert @pixbuf in @textbuffer
* @pixbuf: the #GdkPixbuf to be inserted
*
- * The insert_pixbuf signal is emitted to insert a #GdkPixbuf
+ * The ::insert-pixbuf signal is emitted to insert a #GdkPixbuf
* in a #GtkTextBuffer. Insertion actually occurs in the default handler.
*
* Note that if your handler runs before the default handler it must not
@@ -330,7 +330,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* @location: position to insert @anchor in @textbuffer
* @anchor: the #GtkTextChildAnchor to be inserted
*
- * The insert_child_anchor signal is emitted to insert a
+ * The ::insert-child-anchor signal is emitted to insert a
* #GtkTextChildAnchor in a #GtkTextBuffer.
* Insertion actually occurs in the default handler.
*
@@ -359,7 +359,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* @start: the start of the range to be deleted
* @end: the end of the range to be deleted
*
- * The delete_range signal is emitted to delete a range
+ * The ::delete-range signal is emitted to delete a range
* from a #GtkTextBuffer.
*
* Note that if your handler runs before the default handler it must not
@@ -387,7 +387,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* GtkTextBuffer::changed:
* @textbuffer: the object which received the signal
*
- * The changed signal is emitted when the content of a #GtkTextBuffer
+ * The ::changed signal is emitted when the content of a #GtkTextBuffer
* has changed.
*/
signals[CHANGED] =
@@ -404,7 +404,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* GtkTextBuffer::modified-changed:
* @textbuffer: the object which received the signal
*
- * The modified_changed signal is emitted when the modified bit of a
+ * The ::modified-changed signal is emitted when the modified bit of a
* #GtkTextBuffer flips.
*
* See also:
@@ -426,7 +426,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* @location: The location of @mark in @textbuffer
* @mark: The mark that is set
*
- * The mark_set signal is emitted as notification
+ * The ::mark-set signal is emitted as notification
* after a #GtkTextMark is set.
*
* See also:
@@ -450,7 +450,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* @textbuffer: the object which received the signal
* @mark: The mark that was deleted
*
- * The mark_deleted signal is emitted as notification
+ * The ::mark-deleted signal is emitted as notification
* after a #GtkTextMark is deleted.
*
* See also:
@@ -474,7 +474,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* @start: the start of the range the tag is applied to
* @end: the end of the range the tag is applied to
*
- * The apply_tag signal is emitted to apply a tag to a
+ * The ::apply-tag signal is emitted to apply a tag to a
* range of text in a #GtkTextBuffer.
* Applying actually occurs in the default handler.
*
@@ -507,8 +507,8 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* @start: the start of the range the tag is removed from
* @end: the end of the range the tag is removed from
*
- * The remove_tag signal is emitted to remove all occurrences of @tag from a
- * range of text in a #GtkTextBuffer.
+ * The ::remove-tag signal is emitted to remove all occurrences of @tag from
+ * a range of text in a #GtkTextBuffer.
* Removal actually occurs in the default handler.
*
* Note that if your handler runs before the default handler it must not
@@ -534,7 +534,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* GtkTextBuffer::begin-user-action:
* @textbuffer: the object which received the signal
*
- * The begin_user_action signal is emitted at the beginning of a single
+ * The ::begin-user-action signal is emitted at the beginning of a single
* user-visible operation on a #GtkTextBuffer.
*
* See also:
@@ -559,7 +559,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* GtkTextBuffer::end-user-action:
* @textbuffer: the object which received the signal
*
- * The end_user_action signal is emitted at the end of a single
+ * The ::end-user-action signal is emitted at the end of a single
* user-visible operation #GtkTextBuffer.
*
* See also:
@@ -880,7 +880,7 @@ gtk_text_buffer_emit_insert (GtkTextBuffer *buffer,
*
* Inserts @len bytes of @text at position @iter. If @len is -1,
* @text must be nul-terminated and will be inserted in its
- * entirety. Emits the "insert_text" signal; insertion actually occurs
+ * entirety. Emits the "insert-text" signal; insertion actually occurs
* in the default handler for the signal. @iter is invalidated when
* insertion occurs (because the buffer contents change), but the
* default signal handler revalidates it to point to the end of the
@@ -1601,7 +1601,7 @@ gtk_text_buffer_emit_delete (GtkTextBuffer *buffer,
*
* Deletes text between @start and @end. The order of @start and @end
* is not actually relevant; gtk_text_buffer_delete() will reorder
- * them. This function actually emits the "delete_range" signal, and
+ * them. This function actually emits the "delete-range" signal, and
* the default handler of that signal deletes the text. Because the
* buffer is modified, all outstanding iterators become invalid after
* calling this function; however, the @start and @end will be
@@ -1725,8 +1725,9 @@ gtk_text_buffer_delete_interactive (GtkTextBuffer *buffer,
/* It's more robust to ask for the state again then to assume that
* we're on the next not-editable segment. We don't know what the
- * ::delete-range handler did.... maybe it deleted the following not-editable
- * segment because it was associated with the editable segment.
+ * ::delete-range handler did.... maybe it deleted the following
+ * not-editable segment because it was associated with the editable
+ * segment.
*/
current_state = gtk_text_iter_editable (&iter, default_editable);
deleted_stuff = TRUE;
@@ -2056,7 +2057,7 @@ gtk_text_buffer_set_mark (GtkTextBuffer *buffer,
* return value if you like. Marks are owned by the buffer and go
* away when the buffer does.
*
- * Emits the "mark_set" signal as notification of the mark's initial
+ * Emits the "mark-set" signal as notification of the mark's initial
* placement.
*
* Return value: the new #GtkTextMark object
@@ -2083,7 +2084,7 @@ gtk_text_buffer_create_mark (GtkTextBuffer *buffer,
* another buffer, and if its name is not %NULL then there must not
* be another mark in the buffer with the same name.
*
- * Emits the "mark_set" signal as notification of the mark's initial
+ * Emits the "mark-set" signal as notification of the mark's initial
* placement.
*
* Since: 2.12
@@ -2117,7 +2118,7 @@ gtk_text_buffer_add_mark (GtkTextBuffer *buffer,
* @mark: a #GtkTextMark
* @where: new location for @mark in @buffer
*
- * Moves @mark to the new location @where. Emits the "mark_set" signal
+ * Moves @mark to the new location @where. Emits the "mark-set" signal
* as notification of the move.
**/
void
@@ -2166,7 +2167,7 @@ gtk_text_buffer_get_iter_at_mark (GtkTextBuffer *buffer,
* invalid, until it gets added to a buffer again with
* gtk_text_buffer_add_mark(). Use gtk_text_mark_get_deleted() to
* find out if a mark has been removed from its buffer.
- * The "mark_deleted" signal will be emitted as notification after
+ * The "mark-deleted" signal will be emitted as notification after
* the mark is deleted.
**/
void
@@ -2549,7 +2550,7 @@ gtk_text_buffer_emit_tag (GtkTextBuffer *buffer,
* @start: one bound of range to be tagged
* @end: other bound of range to be tagged
*
- * Emits the "apply_tag" signal on @buffer. The default
+ * Emits the "apply-tag" signal on @buffer. The default
* handler for the signal applies @tag to the given range.
* @start and @end do not have to be in order.
**/
@@ -2577,7 +2578,7 @@ gtk_text_buffer_apply_tag (GtkTextBuffer *buffer,
* @start: one bound of range to be untagged
* @end: other bound of range to be untagged
*
- * Emits the "remove_tag" signal. The default handler for the signal
+ * Emits the "remove-tag" signal. The default handler for the signal
* removes all occurrences of @tag from the given range. @start and
* @end don't have to be in order.
**/
@@ -2988,7 +2989,7 @@ gtk_text_buffer_get_modified (GtkTextBuffer *buffer)
* last time it was saved. Whenever the buffer is saved to disk, call
* gtk_text_buffer_set_modified (@buffer, FALSE). When the buffer is modified,
* it will automatically toggled on the modified bit again. When the modified
- * bit flips, the buffer emits a "modified_changed" signal.
+ * bit flips, the buffer emits a "modified-changed" signal.
**/
void
gtk_text_buffer_set_modified (GtkTextBuffer *buffer,
@@ -4023,7 +4024,7 @@ gtk_text_buffer_get_selection_bounds (GtkTextBuffer *buffer,
* an undo stack. #GtkTextBuffer maintains a count of calls to
* gtk_text_buffer_begin_user_action() that have not been closed with
* a call to gtk_text_buffer_end_user_action(), and emits the
- * "begin_user_action" and "end_user_action" signals only for the
+ * "begin-user-action" and "end-user-action" signals only for the
* outermost pair of calls. This allows you to build user actions
* from other user actions.
*
@@ -4349,7 +4350,7 @@ _gtk_text_buffer_notify_will_remove_tag (GtkTextBuffer *buffer,
GtkTextTag *tag)
{
/* This removes tag from the buffer, but DOESN'T emit the
- * remove_tag signal, because we can't afford to have user
+ * remove-tag signal, because we can't afford to have user
* code messing things up at this point; the tag MUST be removed
* entirely.
*/