Commit 9d438d4a authored by Kai Willadsen's avatar Kai Willadsen

filediff: Attach the findbar at a constant spot and let grid handle it

parent 8de14024
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment