GTK3: canvas does not support scrolling events

Bug #1016892 reported by su_v on 2012-06-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Alex Valavanis

Bug Description

Scrolling (or zooming, depending on the preferences setting) in the canvas area using the mouse wheel of an external mouse or with the (built-in) trackpad fails (it works just fine in other dialogs/widgets with scrollable content).

Possibly related to warnings like these when compiling:
  CXX event-context.o
../../src/event-context.cpp: In function ‘gint sp_event_context_private_root_handler(SPEventContext*, GdkEvent*)’:
../../src/event-context.cpp:733: warning: enumeration value ‘GDK_SCROLL_SMOOTH’ not handled in switch

  CXX spray-context.o
../../src/spray-context.cpp: In function ‘gint sp_spray_context_root_handler(SPEventContext*, GdkEvent*)’:
../../src/spray-context.cpp:736: warning: enumeration value ‘GDK_SCROLL_SMOOTH’ not handled in switch

Note: Scrolling/zooming the canvas area works ok with GTK2, and the compiler warnings only occur with GTK3 builds.

Tested with Inkscape 0.48+devel r11512 on OS X 10.7.4
glib 2.32.3, gtk3/x11 3.4.3, gtkmm 3.4.0

Changed in inkscape:
status: New → Triaged
importance: Undecided → Medium
Alex Valavanis (valavanisalex) wrote :

Should be fixed in lp:inkscape r11566. Let me know if the problem persists!

Changed in inkscape:
status: Triaged → Fix Released
su_v (suv-lp) wrote :

Fix confirmed on OS X 10.7.4 with
- r11566, GTK3/X11 3.4.4, gtkmm 3.4.0, glib 2.32.4, glibmm 2.32.1
- r11566, GTK3/Quartz 3.5.8, gtkmm 3.5.6, glib2 2.33.6, glibmm 2.33.3

<off-topic>
I still see the same limitation as with GTK2 though (possibly limited to OS X (?), as tracked in bug #167191):
For the canvas area, this fails (with both backends of GTK" and GTK3):
- scrolling horizontally with <Shift> + mouse wheel
It works as expected e.g. in the color palette below the canvas area, and in dialogs displaying a horizontal scrollbar.
</off-topic>

Changed in inkscape:
assignee: nobody → Alex Valavanis (valavanisalex)
tags: added: gtk3
removed: gtk3-regression
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers