From 428d9dde79f643627c5218d7d9e37c23a20b2f18 Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 28 Jul 2014 20:55:25 +0200 Subject: Add API docs for EomScrollView's new properties Based on eog commit c630747b02a9589a993c28d244448cdc291131e8 From Felix Riemann --- src/eom-scroll-view.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c index 2d9f21a..6d8e1eb 100644 --- a/src/eom-scroll-view.c +++ b/src/eom-scroll-view.c @@ -2774,12 +2774,24 @@ eom_scroll_view_class_init (EomScrollViewClass *klass) g_param_spec_boolean ("use-background-color", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_NAME)); + /** + * EomScrollView:zoom-multiplier: + * + * The current zoom factor is multiplied with this value + 1.0 when + * scrolling with the scrollwheel to determine the next zoom factor. + */ g_object_class_install_property ( gobject_class, PROP_ZOOM_MULTIPLIER, g_param_spec_double ("zoom-multiplier", NULL, NULL, - -G_MAXDOUBLE, G_MAXDOUBLE, 0.05, + -G_MAXDOUBLE, G_MAXDOUBLE -1.0, 0.05, G_PARAM_READWRITE | G_PARAM_STATIC_NAME)); + /** + * EomScrollView:scrollwheel-zoom: + * + * If %TRUE the scrollwheel will zoom the view, otherwise it will be + * used for scrolling a zoomed image. + */ g_object_class_install_property ( gobject_class, PROP_SCROLLWHEEL_ZOOM, g_param_spec_boolean ("scrollwheel-zoom", NULL, NULL, TRUE, -- cgit v1.2.1