[gitg] Fix custom panel overlay for RTL
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix custom panel overlay for RTL
- Date: Sat, 4 Jan 2014 21:04:37 +0000 (UTC)
commit 4962b06da9e76c92d3ae25645a39ffae8c84db27
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Jan 4 22:04:13 2014 +0100
Fix custom panel overlay for RTL
gitg/history/gitg-history-paned.vala | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/gitg/history/gitg-history-paned.vala b/gitg/history/gitg-history-paned.vala
index 6b2074c..79a1d52 100644
--- a/gitg/history/gitg-history-paned.vala
+++ b/gitg/history/gitg-history-paned.vala
@@ -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_frame(context, wx, y, w, h);
+
+ int hx;
+ handlewin.get_position(out hx, null);
- c.render_background(context, position, y, hw, h);
+ c.render_background(context, hx, y, hw, h);
c.restore();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]