Skip to content

Commit

Permalink
hide message tray also
Browse files Browse the repository at this point in the history
  • Loading branch information
jancborchardt committed Jul 15, 2012
1 parent fddd472 commit c28f9b5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
19 changes: 11 additions & 8 deletions hide-panel@jancborchardt.net/extension.js
Expand Up @@ -3,28 +3,31 @@

const Overview = imports.ui.main.overview;
const Panel = imports.ui.main.panel;
const MessageTray = imports.ui.main.messageTray;

function init() {
}

function enable() {
hidePanel();
hideDistractions();
Panel._activitiesButton.actor.hide();
Overview.connect('hiding', hidePanel);
Overview.connect('showing', showPanel);
Overview.connect('hiding', hideDistractions);
Overview.connect('showing', showDistractions);
}

function disable() {
showPanel();
showDistractions();
Panel._activitiesButton.actor.show();
Overview.disconnect(Overview.connect('hiding', hidePanel));
Overview.disconnect(Overview.connect('showing', showPanel));
Overview.disconnect(Overview.connect('hiding', hideDistractions));
Overview.disconnect(Overview.connect('showing', showDistractions));
}

function hidePanel() {
function hideDistractions() {
Panel.actor.hide();
MessageTray.actor.hide()
}

function showPanel() {
function showDistractions() {
Panel.actor.show();
MessageTray.actor.show()
}
8 changes: 4 additions & 4 deletions hide-panel@jancborchardt.net/metadata.json
@@ -1,8 +1,8 @@
{
"name": "Hide Panel",
"description": "Show the top panel only in the Activities overview. Also removes the hot corner so it's not triggered by accident. Switch to Activities with the Super key or cycle apps with Alt+Tab.",
"name": "Distraction-Free",
"description": "Show Panel and Message Tray only in the Activities overview. Also removes the hot corner so it's not triggered by accident. Switch to Activities with the Super key or cycle apps with Alt+Tab.",
"shell-version": ["3.2.1","3.2.2","3.4","3.6"],
"url": "http://github.com/jancborchardt/gnome-shell-extensions",
"uuid": "hide-panel@jancborchardt.net",
"version": 2
"uuid": "distraction-free@jancborchardt.net",
"version": 3
}

0 comments on commit c28f9b5

Please sign in to comment.