Skip to content

Commit

Permalink
No need to set background explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed May 21, 2023
1 parent 81fc901 commit e56ee50
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gaphas/view/gtkview.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,9 @@ def update_back_buffer(self) -> None:
self.queue_draw()

def do_snapshot(self, snapshot):
width = self.get_width()
height = self.get_height()
snapshot.render_background(self.get_style_context(), 0, 0, width, height)

if self.model:
width = self.get_width()
height = self.get_height()
r = Graphene.Rect()
r.init(0, 0, width, height)
cr = snapshot.append_cairo(r)
Expand Down

0 comments on commit e56ee50

Please sign in to comment.