GTK4: get gtk4 to compile.
... but dimensions are not working, and neither are shortcuts
This commit is contained in:
parent
68b6d1cdb6
commit
b1adaef7e3
|
@ -361,10 +361,9 @@ int handle_signal_keypress(void* self, GdkEvent* event, GtkNotebook* notebook)
|
||||||
{
|
{
|
||||||
(void)self;
|
(void)self;
|
||||||
|
|
||||||
guint event_keyval = 0;
|
guint event_keyval = gdk_key_event_get_keyval(event);
|
||||||
gdk_event_get_keyval(event, &event_keyval);
|
GdkModifierType event_state = gdk_event_get_modifier_state(event);
|
||||||
GdkModifierType event_state = 0;
|
/* https://docs.gtk.org/gdk4/keys.html, https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gdk/gdkevents.h */
|
||||||
gdk_event_get_state(event, &event_state);
|
|
||||||
|
|
||||||
if (0) {
|
if (0) {
|
||||||
printf("Keypress state: %d\n", event_state);
|
printf("Keypress state: %d\n", event_state);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user