diff --git a/appIcons.js b/appIcons.js index 62b7ab7..ba9b3ca 100644 --- a/appIcons.js +++ b/appIcons.js @@ -24,24 +24,19 @@ import Clutter from 'gi://Clutter'; import Gio from 'gi://Gio'; -import GLib from 'gi://GLib'; import Graphene from 'gi://Graphene'; import GObject from 'gi://GObject'; import Mtk from 'gi://Mtk'; import Shell from 'gi://Shell'; import St from 'gi://St'; -import * as Config from 'resource:///org/gnome/shell/misc/config.js'; import * as AppDisplay from 'resource:///org/gnome/shell/ui/appDisplay.js'; import * as AppMenu from 'resource:///org/gnome/shell/ui/appMenu.js'; -import * as AppFavorites from 'resource:///org/gnome/shell/ui/appFavorites.js'; import * as Dash from 'resource:///org/gnome/shell/ui/dash.js'; import * as DND from 'resource:///org/gnome/shell/ui/dnd.js'; -import * as IconGrid from 'resource:///org/gnome/shell/ui/iconGrid.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js'; import * as Util from 'resource:///org/gnome/shell/misc/util.js'; -import * as Workspace from 'resource:///org/gnome/shell/ui/workspace.js'; import * as BoxPointer from 'resource:///org/gnome/shell/ui/boxpointer.js'; import * as Utils from './utils.js'; diff --git a/extension.js b/extension.js index c1fac4e..7e344a0 100644 --- a/extension.js +++ b/extension.js @@ -19,13 +19,7 @@ import * as Main from 'resource:///org/gnome/shell/ui/main.js'; -import Meta from 'gi://Meta'; import Gio from 'gi://Gio'; -import GLib from 'gi://GLib'; -import Shell from 'gi://Shell'; -import St from 'gi://St'; -import * as WindowManager from 'resource:///org/gnome/shell/ui/windowManager.js'; -import * as ExtensionUtils from 'resource:///org/gnome/shell/misc/extensionUtils.js';; import * as PanelManager from './panelManager.js'; import * as Utils from './utils.js'; @@ -33,7 +27,6 @@ import * as AppIcons from './appIcons.js'; import {Extension, gettext as _} from 'resource:///org/gnome/shell/extensions/extension.js'; -const Mainloop = imports.mainloop; const {signals: Signals} = imports; const UBUNTU_DOCK_UUID = 'ubuntu-dock@ubuntu.com'; diff --git a/intellihide.js b/intellihide.js index 808016a..ea5873c 100644 --- a/intellihide.js +++ b/intellihide.js @@ -26,7 +26,6 @@ import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as OverviewControls from 'resource:///org/gnome/shell/ui/overviewControls.js'; import * as PointerWatcher from 'resource:///org/gnome/shell/ui/pointerWatcher.js'; -import * as Panel from './panel.js'; import * as Proximity from './proximity.js'; import * as Utils from './utils.js'; import {SETTINGS} from './extension.js'; diff --git a/overview.js b/overview.js index d39f115..9ce980f 100644 --- a/overview.js +++ b/overview.js @@ -28,13 +28,10 @@ import Gio from 'gi://Gio'; import Shell from 'gi://Shell'; import St from 'gi://St'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; -import * as Workspace from 'resource:///org/gnome/shell/ui/workspace.js'; import * as WindowManager from 'resource:///org/gnome/shell/ui/windowManager.js'; import {WindowPreview} from 'resource:///org/gnome/shell/ui/windowPreview.js'; import {SETTINGS} from './extension.js'; -import Meta from 'gi://Meta'; - const GS_HOTKEYS_KEY = 'switch-to-application-'; // When the dash is shown, workspace window preview bottom labels go over it (default diff --git a/panel.js b/panel.js index 041d60d..62cd29d 100644 --- a/panel.js +++ b/panel.js @@ -28,8 +28,6 @@ */ import Clutter from 'gi://Clutter'; -import * as Config from 'resource:///org/gnome/shell/misc/config.js'; -import Gtk from 'gi://Gtk'; import GObject from 'gi://GObject'; import * as AppIcons from './appIcons.js'; import * as Utils from './utils.js'; @@ -43,13 +41,11 @@ import * as Dash from 'resource:///org/gnome/shell/ui/dash.js'; import * as CtrlAltTab from 'resource:///org/gnome/shell/ui/ctrlAltTab.js'; import * as PanelMenu from 'resource:///org/gnome/shell/ui/panelMenu.js'; import St from 'gi://St'; -import GLib from 'gi://GLib'; import Meta from 'gi://Meta'; import Pango from 'gi://Pango'; import * as DND from 'resource:///org/gnome/shell/ui/dnd.js'; import Shell from 'gi://Shell'; import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js'; -import * as IconGrid from 'resource:///org/gnome/shell/ui/iconGrid.js'; import * as DateMenu from 'resource:///org/gnome/shell/ui/dateMenu.js'; import * as Volume from 'resource:///org/gnome/shell/ui/status/volume.js'; import * as Progress from './progress.js'; @@ -59,9 +55,6 @@ import * as Transparency from './transparency.js'; import {SETTINGS, DESKTOPSETTINGS, PERSISTENTSTORAGE} from './extension.js'; import {gettext as _} from 'resource:///org/gnome/shell/extensions/extension.js'; -const Mainloop = imports.mainloop; -const Gi = imports._gi; - let tracker = Shell.WindowTracker.get_default(); export const panelBoxes = ['_leftBox', '_centerBox', '_rightBox']; diff --git a/panelManager.js b/panelManager.js index f74be84..48578e2 100755 --- a/panelManager.js +++ b/panelManager.js @@ -31,7 +31,6 @@ import * as Overview from './overview.js'; import * as Panel from './panel.js'; import * as PanelSettings from './panelSettings.js'; import * as Proximity from './proximity.js'; -import * as Taskbar from './taskbar.js'; import * as Utils from './utils.js'; import * as DesktopIconsIntegration from './desktopIconsIntegration.js'; @@ -42,19 +41,14 @@ import Meta from 'gi://Meta'; import Shell from 'gi://Shell'; import St from 'gi://St'; -import * as AppDisplay from 'resource:///org/gnome/shell/ui/appDisplay.js'; import * as BoxPointer from 'resource:///org/gnome/shell/ui/boxpointer.js'; -import * as Dash from 'resource:///org/gnome/shell/ui/dash.js'; -import * as IconGrid from 'resource:///org/gnome/shell/ui/iconGrid.js'; import * as LookingGlass from 'resource:///org/gnome/shell/ui/lookingGlass.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as PanelMenu from 'resource:///org/gnome/shell/ui/panelMenu.js'; import * as Layout from 'resource:///org/gnome/shell/ui/layout.js'; -import * as WM from 'resource:///org/gnome/shell/ui/windowManager.js'; import {SETTINGS} from './extension.js'; import {SecondaryMonitorDisplay, WorkspacesView} from 'resource:///org/gnome/shell/ui/workspacesView.js'; -const Gi = imports._gi; export const PanelManager = class { diff --git a/panelStyle.js b/panelStyle.js index 291683f..e4b1f8e 100644 --- a/panelStyle.js +++ b/panelStyle.js @@ -21,17 +21,9 @@ * mathematical.coffee@gmail.com */ -import * as ExtensionUtils from 'resource:///org/gnome/shell/misc/extensionUtils.js';; -import * as Main from 'resource:///org/gnome/shell/ui/main.js'; -import St from 'gi://St'; -import Shell from 'gi://Shell'; - -import * as Panel from './panel.js'; -import * as Taskbar from './taskbar.js'; import * as Utils from './utils.js'; import {SETTINGS} from './extension.js'; -const Mainloop = imports.mainloop; export const PanelStyle = class { diff --git a/prefs.js b/prefs.js index 7069bca..ace8553 100644 --- a/prefs.js +++ b/prefs.js @@ -25,7 +25,6 @@ import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; import Gtk from 'gi://Gtk'; -import Adw from 'gi://Adw'; import Gdk from 'gi://Gdk'; import * as PanelSettings from './panelSettings.js'; @@ -35,8 +34,6 @@ import {ExtensionPreferences, gettext as _, ngettext} from 'resource:///org/gnom const Mainloop = imports.mainloop; -const N_ = function(e) { return e }; - const SCALE_UPDATE_TIMEOUT = 500; const DEFAULT_PANEL_SIZES = [ 128, 96, 64, 48, 32, 24, 16 ]; const DEFAULT_FONT_SIZES = [ 96, 64, 48, 32, 24, 16, 0 ]; diff --git a/proximity.js b/proximity.js index 2221833..eff1548 100644 --- a/proximity.js +++ b/proximity.js @@ -18,7 +18,6 @@ import Meta from 'gi://Meta'; import Mtk from 'gi://Mtk'; -import * as Layout from 'resource:///org/gnome/shell/ui/layout.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as Utils from './utils.js'; diff --git a/taskbar.js b/taskbar.js index 1b8f270..b3055f6 100644 --- a/taskbar.js +++ b/taskbar.js @@ -27,20 +27,15 @@ import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; import Graphene from 'gi://Graphene'; -import Meta from 'gi://Meta'; import Shell from 'gi://Shell'; import St from 'gi://St'; import * as AppFavorites from 'resource:///org/gnome/shell/ui/appFavorites.js'; import * as Dash from 'resource:///org/gnome/shell/ui/dash.js'; import * as DND from 'resource:///org/gnome/shell/ui/dnd.js'; -import * as IconGrid from 'resource:///org/gnome/shell/ui/iconGrid.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; -import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js'; -import * as Workspace from 'resource:///org/gnome/shell/ui/workspace.js'; import * as AppIcons from './appIcons.js'; -import * as Panel from './panel.js'; import * as PanelManager from './panelManager.js'; import * as PanelSettings from './panelSettings.js'; import * as Pos from './panelPositions.js'; diff --git a/transparency.js b/transparency.js index e9691a5..25ff00f 100644 --- a/transparency.js +++ b/transparency.js @@ -15,14 +15,10 @@ * along with this program. If not, see . */ -import Clutter from 'gi://Clutter'; import GdkPixbuf from 'gi://GdkPixbuf'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; -import Meta from 'gi://Meta'; import St from 'gi://St'; -import * as Config from 'resource:///org/gnome/shell/misc/config.js'; -import * as Panel from './panel.js'; import * as Proximity from './proximity.js'; import * as Utils from './utils.js'; import {SETTINGS} from './extension.js'; diff --git a/utils.js b/utils.js index 9fd74af..26c125d 100644 --- a/utils.js +++ b/utils.js @@ -29,7 +29,6 @@ import Graphene from 'gi://Graphene'; import Meta from 'gi://Meta'; import Shell from 'gi://Shell'; import St from 'gi://St'; -import * as Config from 'resource:///org/gnome/shell/misc/config.js'; import * as Util from 'resource:///org/gnome/shell/misc/util.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as MessageTray from 'resource:///org/gnome/shell/ui/messageTray.js'; diff --git a/windowPreview.js b/windowPreview.js index a556c5b..dce7af6 100644 --- a/windowPreview.js +++ b/windowPreview.js @@ -23,16 +23,12 @@ import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import Meta from 'gi://Meta'; import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js'; import St from 'gi://St'; -import * as WindowManager from 'resource:///org/gnome/shell/ui/windowManager.js'; -import * as Workspace from 'resource:///org/gnome/shell/ui/workspace.js'; -import * as Panel from './panel.js'; import * as Taskbar from './taskbar.js'; import * as Utils from './utils.js'; import {SETTINGS, DESKTOPSETTINGS} from './extension.js'; const Mainloop = imports.mainloop; -const {signals: Signals} = imports; //timeout intervals const ENSURE_VISIBLE_MS = 200;