diff options
Diffstat (limited to 'wikipedia')
-rw-r--r-- | wikipedia/widgets/BoxWithBg.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/wikipedia/widgets/BoxWithBg.js b/wikipedia/widgets/BoxWithBg.js index 1ae9404..6d38bd3 100644 --- a/wikipedia/widgets/BoxWithBg.js +++ b/wikipedia/widgets/BoxWithBg.js @@ -6,14 +6,16 @@ const BoxWithBg = new Lang.Class({ Name: "BoxWithBg", Extends: Gtk.Box, - vfunc_draw: function(cairoContext) { + vfunc_draw: function(cr) { let width = this.get_allocated_width(); let height = this.get_allocated_height(); let context = this.get_style_context(); - Gtk.render_background(context, cairoContext, 0, 0, width, height); - Gtk.render_frame(context, cairoContext, 0, 0, width, height); + Gtk.render_background(context, cr, 0, 0, width, height); + Gtk.render_frame(context, cr, 0, 0, width, height); - return this.parent(cairoContext); + let ret = this.parent(cr); + cr.$dispose(); + return ret; } }); |