Move revealers access away from base classes

Those should not appear in base classes, as they are available in main app only
This commit is contained in:
Rafał Dzięgiel
2021-09-06 15:27:37 +02:00
parent 873e724bf2
commit 8733610a9b
4 changed files with 27 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
const { Gio, GLib, GObject, Gdk, Gtk } = imports.gi;
const { Gio, GLib, GObject, Gtk } = imports.gi;
const Debug = imports.src.debug;
const FileOps = imports.src.fileOps;
const Misc = imports.src.misc;
@@ -131,16 +131,5 @@ class ClapperAppBase extends Gtk.Application
}
else if(hasAdwIcons)
window.remove_css_class('adwicons');
const display = Gdk.Display.get_default();
if(!display) return;
const iconTheme = Gtk.IconTheme.get_for_display(display);
if(!iconTheme) return;
const { headerBar } = window.child.revealerTop;
if(!headerBar) return;
headerBar._onIconThemeChanged(iconTheme);
}
});