From d9ee96cfce0d61372180f89845bc09a49167b3c3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 18 May 2004 17:30:58 +0000 Subject: [PATCH] Document the arguments of the ::move-cursor signal. (#142725) 2004-05-18 Matthias Clasen * gtk/gtktextview.c (gtk_text_view_class_init): Document the arguments of the ::move-cursor signal. (#142725) --- ChangeLog | 7 ++++++- ChangeLog.pre-2-10 | 7 ++++++- ChangeLog.pre-2-6 | 7 ++++++- ChangeLog.pre-2-8 | 7 ++++++- gtk/gtktextview.c | 25 ++++++++++++++++++------- 5 files changed, 42 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index f188965b9f..6191420fa5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ +2004-05-18 Matthias Clasen + + * gtk/gtktextview.c (gtk_text_view_class_init): Document the + arguments of the ::move-cursor signal. (#142725) + 2004-05-17 Matthias Clasen - Mreged from 2.4: + Merged from 2.4: * gtk/gtkbutton.c (gtk_button_size_request) (gtk_button_size_allocate, _gtk_button_paint): Allocate diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index f188965b9f..6191420fa5 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,6 +1,11 @@ +2004-05-18 Matthias Clasen + + * gtk/gtktextview.c (gtk_text_view_class_init): Document the + arguments of the ::move-cursor signal. (#142725) + 2004-05-17 Matthias Clasen - Mreged from 2.4: + Merged from 2.4: * gtk/gtkbutton.c (gtk_button_size_request) (gtk_button_size_allocate, _gtk_button_paint): Allocate diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index f188965b9f..6191420fa5 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,6 +1,11 @@ +2004-05-18 Matthias Clasen + + * gtk/gtktextview.c (gtk_text_view_class_init): Document the + arguments of the ::move-cursor signal. (#142725) + 2004-05-17 Matthias Clasen - Mreged from 2.4: + Merged from 2.4: * gtk/gtkbutton.c (gtk_button_size_request) (gtk_button_size_allocate, _gtk_button_paint): Allocate diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index f188965b9f..6191420fa5 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,6 +1,11 @@ +2004-05-18 Matthias Clasen + + * gtk/gtktextview.c (gtk_text_view_class_init): Document the + arguments of the ::move-cursor signal. (#142725) + 2004-05-17 Matthias Clasen - Mreged from 2.4: + Merged from 2.4: * gtk/gtkbutton.c (gtk_button_size_request) (gtk_button_size_allocate, _gtk_button_paint): Allocate diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 4abf72627d..932fced84f 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -691,16 +691,27 @@ gtk_text_view_class_init (GtkTextViewClass *klass) * Signals */ - signals[MOVE_CURSOR] = + /** + * GtkTextView::move-cursor: + * @widget: the object which received the signal + * @step: the granularity of the move, as a #GtkMovementStep + * @count: the number of @step units to move + * @extend_selection: %TRUE if the move should extend the selection + * + * The ::move-cursor signal is a keybinding signal which gets emitted + * when the user initiates a cursor movement. Applications should not + * use it. + */ + signals[MOVE_CURSOR] = g_signal_new ("move_cursor", - G_OBJECT_CLASS_TYPE (gobject_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, + G_OBJECT_CLASS_TYPE (gobject_class), + G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GtkTextViewClass, move_cursor), - NULL, NULL, - _gtk_marshal_VOID__ENUM_INT_BOOLEAN, + NULL, NULL, + _gtk_marshal_VOID__ENUM_INT_BOOLEAN, G_TYPE_NONE, 3, - GTK_TYPE_MOVEMENT_STEP, - G_TYPE_INT, + GTK_TYPE_MOVEMENT_STEP, + G_TYPE_INT, G_TYPE_BOOLEAN); signals[PAGE_HORIZONTALLY] =