def cancel_unlock_widget(self): """ Hide the unlock widget (and others) if the unlock has been canceled This process is in three steps for aesthetic reasons - a) Unreveal all widgets (begin fading them out) b) Switch over MonitorViews from wallpaper to plug-ins if needed. c) Re-reveal the InfoPanel if applicable """ if not status.Awake: return self.set_timeout_active(None, False) utils.clear_clipboards(self.unlock_dialog) trackers.con_tracker_get().connect(self.unlock_dialog, "notify::child-revealed", self.after_unlock_unrevealed) self.unlock_dialog.unreveal() if self.clock_widget != None: self.clock_widget.unreveal() if self.albumart_widget != None: self.albumart_widget.unreveal() if self.audio_panel != None: self.audio_panel.unreveal() if self.info_panel != None: self.info_panel.unreveal()
def cancel_unlock_widget(self): """ Hide the unlock widget (and others) if the unlock has been canceled """ if not status.Awake: return self.set_timeout_active(None, False) utils.clear_clipboards(self.unlock_dialog) self.unlock_dialog.hide() if self.clock_widget != None: self.clock_widget.hide() if self.albumart_widget != None: self.albumart_widget.hide() if self.audio_panel != None: self.audio_panel.hide() if self.info_panel != None: self.info_panel.hide() if self.osk != None: self.osk.hide() self.unlock_dialog.cancel() status.Awake = False self.update_monitor_views() self.info_panel.update_visibility()
def raise_unlock_widget(self): """ Bring the unlock widget to the front and make sure it's visible. This is done in two steps - we don't want to show anything over a plugin (graphic glitches abound) - so we update the MonitorViews first, then do our other reveals after its transition is complete. """ self.reset_timeout() if status.Awake: return utils.clear_clipboards(self.unlock_dialog) if self.clock_widget != None: self.clock_widget.stop_positioning() if self.albumart_widget != None: self.albumart_widget.stop_positioning() status.Awake = True # Connect to one of our monitorViews (we have at least one always), to wait for # its transition to finish before running after_wallpaper_shown_for_unlock() if len(self.monitors) > 0: trackers.con_tracker_get().connect(self.monitors[0], "current-view-change-complete", self.after_wallpaper_shown_for_unlock) self.update_monitor_views()
def raise_unlock_widget(self): """ Bring the unlock widget to the front and make sure it's visible. """ self.reset_timeout() if status.Awake: return utils.clear_clipboards(self.unlock_dialog) if self.clock_widget != None: self.clock_widget.stop_positioning() if self.albumart_widget != None: self.albumart_widget.stop_positioning() status.Awake = True if self.info_panel: self.info_panel.refresh_power_state() if self.clock_widget != None: self.clock_widget.show() if self.albumart_widget != None: self.albumart_widget.show() self.unlock_dialog.show() if self.audio_panel != None: self.audio_panel.show_panel() if self.info_panel != None: self.info_panel.update_visibility() if self.osk != None: self.osk.show()
def raise_unlock_widget(self): """ Bring the unlock widget to the front and make sure it's visible. This is done in two steps - we don't want to show anything over a plugin (graphic glitches abound) - so we update the MonitorViews first, then do our other reveals after its transition is complete. """ self.reset_timeout() if status.Awake: return utils.clear_clipboards(self.unlock_dialog) if self.clock_widget != None: self.clock_widget.stop_positioning() if self.albumart_widget != None: self.albumart_widget.stop_positioning() status.Awake = True # Connect to one of our monitorViews (we have at least one always), to wait for # its transition to finish before running after_wallpaper_shown_for_unlock() if len(self.monitors) > 0: trackers.con_tracker_get().connect( self.monitors[0], "current-view-change-complete", self.after_wallpaper_shown_for_unlock) self.update_monitor_views()