Johannes Maibaum
2f5b69c021
[WIP] Allow building with GTK+ 3.16+.
...
Set CMake option `ENABLE_GTK3` to `ON` to build with GTK+ 3.0.
In GTK3 mode:
- Use `GtkGrid` instead of `GtkTable`
- Don't use `GtkMisc` to set `GtkLabel`'s alignments
- `PianoKeyboard`'s draw() code still needs to be refactored (doesn't
show key presses).
- Grab keyboard functionality still needs to be ported (doesn't work
yet).
2016-09-18 16:33:36 +02:00
Johannes Maibaum
44980fc2f5
Replace deprecated gtk_type_new with g_object_new.
2016-09-17 12:24:48 +02:00
Johannes Maibaum
c1fe0e7c15
sustain_event_handler listens to toggled signal.
...
This removes the deprecated calls to gtk_button_{pressed,released}.
2016-09-17 12:01:47 +02:00
Johannes Maibaum
f57e31dba5
Fix GSEAL_ENABLE errors for src/pianokeyboard.c.
2016-09-11 21:15:13 +02:00
Johannes Maibaum
6d5bbaca0a
Use cairo for drawing.
2016-09-11 20:03:56 +02:00
Johannes Maibaum
2bd9ca2b9b
Fix GSEAL_ENABLE errors for src/jack-keyboard.c.
2016-09-11 20:03:48 +02:00
Johannes Maibaum
2f4bdf615b
Let GDK and GTK+ report deprecated stuff.
2016-09-11 20:03:41 +02:00
Johannes Maibaum
884ded8b95
Replace GDK_<keyname> with GDK_KEY_<keyname>.
2016-09-11 20:03:05 +02:00
Johannes Maibaum
0941f4abaa
Remove calls to deprecated GLib functions.
...
GLib 2.32 (released in March 2012) deprecated `g_atexit()` [1] and
`g_thread_init()` [2].
[1]: https://developer.gnome.org/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-atexit
[2]: https://developer.gnome.org/glib/stable/glib-Threads.html
2016-09-11 20:03:00 +02:00
Johannes Maibaum
bb80fe24b2
Remove trailing whitespace.
2016-09-11 20:02:53 +02:00