Skip to content

Commit

Permalink
fix wrong icon path which was crashing Gtk dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWestgate committed Aug 24, 2024
1 parent 97e38f7 commit 8467b64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, correct_string, progress=''):
# Set a monospace font
font_desc = Pango.FontDescription("Monospace 17")

self.set_icon_from_file(xdg_data_home() + "/icons/bails128.png")
self.set_icon_from_file(str(xdg_data_home()) + "/icons/bails128.png")

for i in range(self.words):
entry = Gtk.Entry()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PassphraseDialog(Gtk.Dialog):
def __init__(self, parent, title):
Gtk.Dialog.__init__(self, title, parent, 0,
(Gtk.STOCK_OK, Gtk.ResponseType.OK, Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
self.set_icon_from_file(xdg_data_home() + "/icons/bails128.png")
self.set_icon_from_file(str(xdg_data_home()) + "/icons/bails128.png")

self.set_default_size(500, 80)

Expand Down
6 changes: 3 additions & 3 deletions bails/.local/lib/python3.11/site-packages/bails/set_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, parent, title):
(
Gtk.STOCK_OK, Gtk.ResponseType.OK, Gtk.STOCK_CANCEL,
Gtk.ResponseType.CANCEL))
self.set_icon_from_file(xdg_data_home() + "/icons/bails128.png")
self.set_icon_from_file(str(xdg_data_home()) + "/icons/bails128.png")
self.set_default_size(400, 200)

box = self.get_content_area()
Expand Down Expand Up @@ -165,8 +165,8 @@ def __init__(self, parent, title):
(Gtk.STOCK_OK, Gtk.ResponseType.OK))

# Set the icon from a file path
icon_path = "/home/amnesia/.local/share/icons/bails128.png"
self.set_icon_from_file(icon_path)
self.set_icon_from_file(str(xdg_data_home()) + "/icons/bails128.png")


self.set_default_size(500, 150)

Expand Down

0 comments on commit 8467b64

Please sign in to comment.