File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ def __init__(self):
9
9
self .start_windowmanager ()
10
10
self .builder = Gtk .Builder ()
11
11
self .builder .add_from_file ("data/main.ui" )
12
+ self .o = self .builder .get_object
12
13
self .__init_variables ()
13
14
self .__init_gui ()
14
15
self .__update_user_background_loop ()
@@ -26,10 +27,6 @@ def __init_variables(self):
26
27
self .ignore_password_cache = False
27
28
self .background_handler = None
28
29
29
-
30
- def o (self , name = None ):
31
- return self .builder .get_object (name )
32
-
33
30
def __connect_signals (self ):
34
31
def block_delete (* args ):
35
32
return True
@@ -356,7 +353,7 @@ def set_background(self, bg=None):
356
353
if px != None and self .background_pixbuf != px :
357
354
self .background_pixbuf = px
358
355
except Exception as e :
359
- print (str ( e ) )
356
+ print (traceback . format_exc (), file = sys . stderr )
360
357
if self .background_handler != None :
361
358
self .background_pixbuf = self .background_handler (self .background_pixbuf )
362
359
GLib .idle_add (self .draw_background )
You can’t perform that action at this time.
0 commit comments