Fix custom panel overlay for RTL

This commit is contained in:
Jesse van den Kieboom 2014-01-04 22:04:13 +01:00
parent e15b7546c5
commit 4962b06da9

View file

@ -141,6 +141,9 @@ class Paned : Gtk.Paned
{
var ret = base.draw(context);
var window = d_box_sidebar.get_window();
var handlewin = get_handle_window();
var c = get_style_context();
c.save();
@ -150,13 +153,19 @@ class Paned : Gtk.Paned
d_stack_switcher_panels.get_allocation(out alloc);
var y = alloc.y - d_box_sidebar.spacing;
var hw = get_handle_window().get_width();
var hw = handlewin.get_width();
var w = position + hw;
var h = alloc.height + d_box_sidebar.spacing + d_stack_switcher_panels.margin_bottom;
c.render_frame(context, 0, y, w, h);
int wx;
window.get_position(out wx, null);
c.render_background(context, position, y, hw, h);
c.render_frame(context, wx, y, w, h);
int hx;
handlewin.get_position(out hx, null);
c.render_background(context, hx, y, hw, h);
c.restore();