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.
This commit is contained in:
parent
0ae8e80db1
commit
a8dc9322bf
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user