Comment updates.

pull/61/head
Christian T. Jacobs 2017-04-15 00:59:21 +01:00
rodzic 331d80a060
commit 64cb2b2c15
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -488,7 +488,7 @@ class Logbook:
if(page_index == 0): # If we are on the Summary page...
logging.debug("No log currently selected!")
return
page = self.notebook.get_nth_page(page_index) # Gets the Gtk.VBox of the selected tab in the logbook
page = self.notebook.get_nth_page(page_index) # Gets the Gtk.VBox of the selected tab in the logbook.
old_log_name = page.get_name()
log_index = self.get_log_index(name=old_log_name)
@ -509,10 +509,10 @@ class Logbook:
ln.dialog.destroy()
return
# Remember to change the page's name
# Remember to change the page's name ...
page.set_name(self.logs[log_index].name)
# ...and update the tab's label
# ... and update the tab's label.
hbox = Gtk.HBox(False, 0)
label = Gtk.Label(new_log_name)
hbox.pack_start(label, False, False, 0)