Commit af503f73 authored by Christoph Brill's avatar Christoph Brill Committed by Kai Willadsen

Handle dummy_toolbar_diffmap the same way as dummy_toolbar_linkmap

I'm not sure if this is neccessary, useful or even correct. At least it
does not show any regressions.
parent 2430ed73
......@@ -183,7 +183,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
"linkmap", "msgarea_mgr", "readonlytoggle",
"scrolledwindow", "selector_hbox", "textview", "vbox",
"dummy_toolbar_linkmap", "filelabel_toolitem", "filelabel",
"fileentry_toolitem",
"fileentry_toolitem", "dummy_toolbar_diffmap"
]
self.map_widgets_into_lists(widget_lists)
......@@ -1887,12 +1887,14 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.num_panes = n
for widget in (
self.vbox[:n] + self.file_toolbar[:n] + self.diffmap[:n] +
self.linkmap[:n - 1] + self.dummy_toolbar_linkmap[:n - 1]):
self.linkmap[:n - 1] + self.dummy_toolbar_linkmap[:n - 1] +
self.dummy_toolbar_diffmap[:n - 1]):
widget.show()
for widget in (
self.vbox[n:] + self.file_toolbar[n:] + self.diffmap[n:] +
self.linkmap[n - 1:] + self.dummy_toolbar_linkmap[n - 1:]):
self.linkmap[n - 1:] + self.dummy_toolbar_linkmap[n - 1:] +
self.dummy_toolbar_diffmap[n - 1:]):
widget.hide()
self.actiongroup.get_action("MakePatch").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