Re: Making the panel re-appear in the lock screen after removing it from the shield



Hello,

I did a quick test which may (or easily not be) a solution.
Main.layoutManager.panelBox.hide();
Main.layoutManager.panelBox.show();
It seems to work in a regular user session.  I using GS 3.26.

Norman



On Tue, 2017-10-31 at 16:01 +0200, Jonathan Dieter wrote:
I'm writing an extension that will basically turn the shield into a
slideshow.  Because I've disabled screen blanking, the shield is on
all
the time.  I've put the following code in screenShield.js, into the
_activateFade function to disable the panel when the shield comes
down,
and it works perfectly.

Main.layoutManager.removeChrome(Main.layoutManager.panelBox);

The correlating code to bring the panel back is *not* working, but
does
not leave any warnings or errors:

Main.layoutManager.addChrome(Main.layoutManager.panelBox, { 
    affectsStruts: true,
    trackFullscreen: true });

I've tried putting it in _clearLockScreen and _completeLockScreen,
but
the panel never re-appears.

Is there somewhere else I should put it?  Is there a better way to
make
the panel disappear?

Jonathan
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]