Skip to content

Commit

Permalink
self.o definition changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Dec 2, 2024
1 parent 6f72a92 commit 5397cc3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/module/gtkwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def __init__(self):
self.start_windowmanager()
self.builder = Gtk.Builder()
self.builder.add_from_file("data/main.ui")
self.o = self.builder.get_object
self.__init_variables()
self.__init_gui()
self.__update_user_background_loop()
Expand All @@ -26,10 +27,6 @@ def __init_variables(self):
self.ignore_password_cache = False
self.background_handler = None


def o(self, name=None):
return self.builder.get_object(name)

def __connect_signals(self):
def block_delete(*args):
return True
Expand Down Expand Up @@ -356,7 +353,7 @@ def set_background(self, bg=None):
if px != None and self.background_pixbuf != px:
self.background_pixbuf = px
except Exception as e:
print(str(e))
print(traceback.format_exc(), file=sys.stderr)
if self.background_handler != None:
self.background_pixbuf = self.background_handler(self.background_pixbuf)
GLib.idle_add(self.draw_background)
Expand Down

0 comments on commit 5397cc3

Please sign in to comment.