Project

General

Profile

Feature #159 » 0041-gtk4-x-Make-map-canvas-focusable.patch

main - Marko Lindqvist, 01/09/2024 05:12 AM

View differences:

client/gui-gtk-4.0/gui_main.c
gtk_widget_set_size_request(map_canvas, 300, 300);
gtk_widget_set_can_focus(map_canvas, TRUE);
gtk_widget_set_focusable(map_canvas, TRUE);
#if 0
setup_canvas_color_for_state(GTK_STATE_FLAG_NORMAL);
setup_canvas_color_for_state(GTK_STATE_FLAG_ACTIVE);
client/gui-gtk-5.0/gui_main.c
gtk_widget_set_size_request(map_canvas, 300, 300);
gtk_widget_set_can_focus(map_canvas, TRUE);
gtk_widget_set_focusable(map_canvas, TRUE);
#if 0
setup_canvas_color_for_state(GTK_STATE_FLAG_NORMAL);
setup_canvas_color_for_state(GTK_STATE_FLAG_ACTIVE);
(1-1/2)