Fix Timeout
This commit is contained in:
1 parent
bb829c67f1
commit
38d8bb1e0d
1 file changed
+4
-4
@@ -58,7 +58,7 @@ class ContentBox(CenterBox):
|
|||||||
v_align="center",
|
v_align="center",
|
||||||
visible=False,
|
visible=False,
|
||||||
password=True,
|
password=True,
|
||||||
# on_activate=on_activate,
|
on_activate=on_activate,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.password_entry.set_property("xalign", 0.5)
|
self.password_entry.set_property("xalign", 0.5)
|
||||||
@@ -139,7 +139,7 @@ class LockScreen(Window):
|
|||||||
self.content = ContentBox(self.on_activate)
|
self.content = ContentBox(self.on_activate)
|
||||||
super().__init__(
|
super().__init__(
|
||||||
title="lock",
|
title="lock",
|
||||||
visible=True,
|
visible=False,
|
||||||
all_visible=False,
|
all_visible=False,
|
||||||
name="lockscreen-bg",
|
name="lockscreen-bg",
|
||||||
anchor="center",
|
anchor="center",
|
||||||
@@ -172,7 +172,7 @@ class LockScreen(Window):
|
|||||||
|
|
||||||
def _start_hide_timer(self):
|
def _start_hide_timer(self):
|
||||||
self._stop_hide_timer() # just in case
|
self._stop_hide_timer() # just in case
|
||||||
self._hide_timeout_id = GLib.timeout_add_seconds(500, self._hide_entry)
|
self._hide_timeout_id = GLib.timeout_add_seconds(5, self._hide_entry)
|
||||||
# 10 seconds of inactivity before hiding
|
# 10 seconds of inactivity before hiding
|
||||||
|
|
||||||
def _restart_hide_timer(self):
|
def _restart_hide_timer(self):
|
||||||
@@ -213,8 +213,8 @@ def initialize():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# initialize()
|
|
||||||
setproctitle.setproctitle("lockscreen")
|
setproctitle.setproctitle("lockscreen")
|
||||||
|
initialize()
|
||||||
lockscreen = LockScreen(GtkSessionLock.Lock())
|
lockscreen = LockScreen(GtkSessionLock.Lock())
|
||||||
|
|
||||||
app = Application("lock", lockscreen)
|
app = Application("lock", lockscreen)
|
||||||
|
|||||||
Reference in new issue
Block a user