From cbc358ead8b75522655ddbda3be36d98c8fbebff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Mon, 11 Oct 2010 02:01:14 +0200 Subject: [PATCH] docs: Document GtkScrolledWindow's signals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on a patch by Björn Lindqvist Fixes https://bugzilla.gnome.org/show_bug.cgi?id=351247 --- gtk/gtkscrolledwindow.c | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index c3aac18256..bdd4a2d197 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -395,7 +395,19 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class) GTK_CORNER_TOP_LEFT, G_PARAM_READABLE | G_PARAM_WRITABLE)); - + /** + * GtkScrolledWindow::scroll-child: + * @scrolled_window: a #GtkScrolledWindow + * @scroll: a #GtkScrollType describing how much to scroll + * @horizontal: whether the keybinding scrolls the child + * horizontally or not + * + * The ::scroll-child signal is a + * keybinding signal + * which gets emitted when a keybinding that scrolls is pressed. + * The horizontal or vertical adjustment is updated which triggers a + * signal that the scrolled windows child may listen to and scroll itself. + */ signals[SCROLL_CHILD] = g_signal_new (I_("scroll-child"), G_TYPE_FROM_CLASS (gobject_class), @@ -406,6 +418,24 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class) G_TYPE_BOOLEAN, 2, GTK_TYPE_SCROLL_TYPE, G_TYPE_BOOLEAN); + + /** + * GtkScrolledWindow::move-focus-out: + * @scrolled_window: a #GtkScrolledWindow + * @direction_type: either %GTK_DIR_TAB_FORWARD or + * %GTK_DIR_TAB_BACKWARD + * + * The ::move-focus-out signal is a + * keybinding signal + * which gets emitted when focus is moved away from the scrolled + * window by a keybinding. + * The #GtkWidget::move-focus signal is emitted with @direction_type + * on this scrolled windows toplevel parent in the container hierarchy. + * The default bindings for this signal are + * TabCtrl + * and + * TabCtrlShift. + */ signals[MOVE_FOCUS_OUT] = g_signal_new (I_("move-focus-out"), G_TYPE_FROM_CLASS (gobject_class),