Skip to content

Commit

Permalink
Fix a few deprecation warnings
Browse files Browse the repository at this point in the history
Issue #13021.
  • Loading branch information
Nick-Hall committed Sep 8, 2023
1 parent f45e6f3 commit 14870e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gramps/gui/plug/_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,13 @@ def __init__(self, dbstate, uistate, track):
sw.add(self.lb)
vbox.pack_start(sw, True, True, 0)

book.append_page(vbox, Gtk.Label(_("Addons")))
book.append_page(vbox, Gtk.Label(label=_("Addons")))

grid = self.create_settings_panel()
book.append_page(grid, Gtk.Label(_("Settings")))
book.append_page(grid, Gtk.Label(label=_("Settings")))

grid = self.create_projects_panel()
book.append_page(grid, Gtk.Label(_("Projects")))
book.append_page(grid, Gtk.Label(label=_("Projects")))

for project in self.projects:
self.project_list.add(ProjectRow(self, project))
Expand Down Expand Up @@ -569,7 +569,7 @@ def __placeholder(self, text):
"""
A placeholder label if no addons are listed.
"""
label = Gtk.Label('<span size="larger" weight="bold">%s</span>' % text)
label = Gtk.Label(label='<span size="larger" weight="bold">%s</span>' % text)
label.set_use_markup(True)
label.show()
self.lb.set_placeholder(label)
Expand Down

0 comments on commit 14870e6

Please sign in to comment.