[eog] Add API docs for EogScrollView's new properties
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Add API docs for EogScrollView's new properties
- Date: Sat, 26 Jun 2010 16:11:27 +0000 (UTC)
commit c630747b02a9589a993c28d244448cdc291131e8
Author: Felix Riemann <friemann gnome org>
Date: Sat Jun 26 18:10:43 2010 +0200
Add API docs for EogScrollView's new properties
src/eog-scroll-view.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index e13c539..b78211b 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -2403,12 +2403,24 @@ eog_scroll_view_class_init (EogScrollViewClass *klass)
g_param_spec_boolean ("use-background-color", NULL, NULL, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME));
+ /**
+ * EogScrollView: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));
+ /**
+ * EogScrollView: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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]