[meld] diffgrid: Hack in an extra row for statusbar packing
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] diffgrid: Hack in an extra row for statusbar packing
- Date: Sat, 25 Nov 2017 22:06:12 +0000 (UTC)
commit 031ec1572fef8cc5183631eb22bd7f18007838e8
Author: Kai Willadsen <kai willadsen gmail com>
Date: Wed Feb 11 06:27:28 2015 +1000
diffgrid: Hack in an extra row for statusbar packing
meld/diffgrid.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/meld/diffgrid.py b/meld/diffgrid.py
index c413eff..d0aebee 100644
--- a/meld/diffgrid.py
+++ b/meld/diffgrid.py
@@ -154,7 +154,8 @@ class DiffGrid(Gtk.Grid):
yrows = [allocation.y,
allocation.y + hrows[0],
# Roughly equivalent to hard-coding row 1 to expand=True
- allocation.y + (allocation.height - hrows[2]),
+ allocation.y + (allocation.height - hrows[2] - hrows[3]),
+ allocation.y + (allocation.height - hrows[3]),
allocation.y + allocation.height]
wmap1, wpane1, wlink1, wpane2, wlink2, wpane3, wmap2 = wcols
@@ -203,9 +204,9 @@ class DiffGrid(Gtk.Grid):
self._handle2.move_resize(pos2, ydrag, wlink2, hdrag)
def _get_min_sizes(self):
- hrows = [0] * 3
+ hrows = [0] * 4
wcols = [0] * 7
- for row in range(0, 3):
+ for row in range(0, 4):
for col in range(0, 7):
child = self.get_child_at(col, row)
if child and child.get_visible():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]