Commit 5458b129 authored by Peter Tyser's avatar Peter Tyser Committed by Kai Willadsen

Only update the window title when the active notebook label changes

Previously the Meld window title was changed whenever a notebook label
changed, regardless if that notebook was active or not.  This change
allows background notebook labels to change without impacting the Meld
window title.

The "Only transfer focus once when opening multiple file diffs" patch
causes the Meld window title to cycle even though the active
notebook/tab did not change.
Signed-off-by: 's avatarPeter Tyser <>
parent 2bbeda64
...@@ -346,6 +346,9 @@ class MeldWindow(gnomeglade.Component): ...@@ -346,6 +346,9 @@ class MeldWindow(gnomeglade.Component):
nbl = self.notebook.get_tab_label(page) nbl = self.notebook.get_tab_label(page)
nbl.set_label_text(text) nbl.set_label_text(text)
nbl.set_tooltip_text(tooltip) nbl.set_tooltip_text(tooltip)
# Only update the window title if the current page is active
if self.notebook.get_current_page() == self.notebook.page_num(page):
self.widget.set_title(text + " - Meld") self.widget.set_title(text + " - Meld")
self.notebook.child_set_property(page, "menu-label", text) self.notebook.child_set_property(page, "menu-label", text)
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