diff options
author | infirit <[email protected]> | 2014-07-28 20:55:25 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-28 20:55:25 +0200 |
commit | 428d9dde79f643627c5218d7d9e37c23a20b2f18 (patch) | |
tree | b0ccff22b5c09113ceef625860e83a98e8b728f1 /src/eom-scroll-view.c | |
parent | a8f9ec1f676ccf61dfc90a678fad56c762852fc6 (diff) | |
download | eom-428d9dde79f643627c5218d7d9e37c23a20b2f18.tar.bz2 eom-428d9dde79f643627c5218d7d9e37c23a20b2f18.tar.xz |
Add API docs for EomScrollView's new properties
Based on eog commit c630747b02a9589a993c28d244448cdc291131e8
From Felix Riemann <[email protected]>
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r-- | src/eom-scroll-view.c | 14 |
1 files changed, 13 insertions, 1 deletions
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, |