[goocanvas] Added doc about disabling mouse-wheel scrolling.



commit 16bbc1b1c9806427f1febb51dd79827a6bb4927c
Author: Damon Chaplin <damon gnome org>
Date:   Fri Nov 1 14:50:03 2013 +0000

    Added doc about disabling mouse-wheel scrolling.

 ChangeLog       |    5 +++++
 src/goocanvas.c |    7 +++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2773424..e9d884f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-11-01  Damon Chaplin  <damon gnome org>
 
+       * src/goocanvas.c: added doc about disabling mouse-wheel scrolling.
+       #617900.
+
+2013-11-01  Damon Chaplin  <damon gnome org>
+
        * src/goocanvas.c (goo_canvas_adjustment_value_changed): disabled
        the code that handled "redraw-when-scrolled" and tried to optimise
        the drawing of static items. GTK+ 3.0 always redraws everything when
diff --git a/src/goocanvas.c b/src/goocanvas.c
index ccf9c9b..c34476f 100644
--- a/src/goocanvas.c
+++ b/src/goocanvas.c
@@ -91,6 +91,13 @@
  *  }
  *
  * </programlisting></informalexample>
+ *
+ * A #GooCanvas widget is usually placed inside a #GtkScrolledWindow widget
+ * and can be scrolled with the scrollbar or with the scroll wheel on a mouse.
+ * To disable mouse wheel scrolling, do this:
+ * <informalexample><programlisting>
+ *  g_signal_connect (canvas, "scroll-event", G_CALLBACK (gtk_true), NULL);
+ * </programlisting></informalexample>
  */
 #include <config.h>
 #include <math.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]