From a8dc9322bfba09c8bf344fab27b9544d0bf0e610 Mon Sep 17 00:00:00 2001 From: Daniel Viegas Date: Sun, 30 Nov 2025 01:27:52 +0100 Subject: [PATCH] Refactor: Use constants for drawing area size request - Replace magic numbers 800, 600 with DEFAULT_DRAWING_AREA_WIDTH and DEFAULT_DRAWING_AREA_HEIGHT constants - Improves consistency and maintainability This ensures all size references use the same constants. --- MyTimeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyTimeline.py b/MyTimeline.py index cc67abe..8b72e9a 100644 --- a/MyTimeline.py +++ b/MyTimeline.py @@ -651,7 +651,7 @@ class MyTimelineView(NavigationView): ) self.drawing_area = Gtk.DrawingArea() - self.drawing_area.set_size_request(800, 600) + self.drawing_area.set_size_request(DEFAULT_DRAWING_AREA_WIDTH, DEFAULT_DRAWING_AREA_HEIGHT) self.drawing_area.connect("draw", self.on_draw) self.drawing_area.add_events(DRAWING_AREA_EVENT_MASKS)