GTK3: warning: enumeration value 'GDK_SCROLL_SMOOTH' not handled in switch [-Wswitch]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Medium
|
Unassigned |
Bug Description
The compiler warning "enumeration value 'GDK_SCROLL_SMOOTH' not handled in switch [-Wswitch]" prevents building with '-Werror=switch'.
Build log r13211 on Ubuntu 14.04:
CXX ui/tools/
../../src/
../../src/
Warning from clang (LLVM 3.1svn):
../../src/
Changed in inkscape: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in inkscape: | |
importance: | Medium → Low |
importance: | Low → Medium |
Here's some documentation from upstream:
https:/ /developer. gnome.org/ gdk3/stable/ gdk3-Event- Structures. html#GdkEventSc roll
Basically, this kind of scroll event can be in any direction and any magnitude rather than just the fixed UP/DOWN/LEFT/RIGHT scrolling that was handled in Gtk+ 2. We need to use gdk_event_ get_scroll_ deltas( ) to obtain the x and y displacements rather than using fixed increments... hopefully it shouldn't be too painful to implement.