[meld] filediff: Attach the findbar at a constant spot and let grid handle it
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] filediff: Attach the findbar at a constant spot and let grid handle it
- Date: Wed, 5 Feb 2014 21:42:05 +0000 (UTC)
commit 9d438d4a1432c303ec2c7f9ab6d72ebc5a8922f0
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Jan 4 08:03:35 2014 +1000
filediff: Attach the findbar at a constant spot and let grid handle it
meld/filediff.py | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 72096a0..93f1d25 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -308,6 +308,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.main_actiongroup = None
self.findbar = findbar.FindBar(self.grid)
+ self.grid.attach(self.findbar.widget, 1, 2, 5, 1)
self.widget.ensure_style()
self.on_style_updated(self.widget)
@@ -1855,11 +1856,6 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
for widget in tohide:
widget.hide()
- right_attach = 2 * n
- if self.findbar.widget in self.grid:
- self.grid.remove(self.findbar.widget)
- self.grid.attach(self.findbar.widget, 1, 2, right_attach - 1, 1)
-
self.actiongroup.get_action("MakePatch").set_sensitive(n > 1)
self.actiongroup.get_action("CycleDocuments").set_sensitive(n > 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]