mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Remove unused variable
This commit is contained in:
@@ -23,18 +23,15 @@ class ClapperApp extends AppBase
|
|||||||
super.vfunc_startup();
|
super.vfunc_startup();
|
||||||
|
|
||||||
const window = this.active_window;
|
const window = this.active_window;
|
||||||
|
|
||||||
window.isClapperApp = true;
|
|
||||||
window.add_css_class('nobackground');
|
|
||||||
|
|
||||||
const clapperWidget = new Widget();
|
const clapperWidget = new Widget();
|
||||||
window.set_child(clapperWidget);
|
|
||||||
|
|
||||||
const dummyHeaderbar = new Gtk.Box({
|
const dummyHeaderbar = new Gtk.Box({
|
||||||
can_focus: false,
|
can_focus: false,
|
||||||
focusable: false,
|
focusable: false,
|
||||||
visible: false,
|
visible: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.add_css_class('nobackground');
|
||||||
|
window.set_child(clapperWidget);
|
||||||
window.set_titlebar(dummyHeaderbar);
|
window.set_titlebar(dummyHeaderbar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -151,9 +151,7 @@ class ClapperPlayerBase extends GstClapper.Clapper
|
|||||||
break;
|
break;
|
||||||
case 'render-shadows':
|
case 'render-shadows':
|
||||||
root = this.widget.get_root();
|
root = this.widget.get_root();
|
||||||
/* Editing theme of someone else app is taboo */
|
if(!root) break;
|
||||||
if(!root || !root.isClapperApp)
|
|
||||||
break;
|
|
||||||
|
|
||||||
const gpuClass = 'gpufriendly';
|
const gpuClass = 'gpufriendly';
|
||||||
const renderShadows = settings.get_boolean(key);
|
const renderShadows = settings.get_boolean(key);
|
||||||
@@ -177,8 +175,7 @@ class ClapperPlayerBase extends GstClapper.Clapper
|
|||||||
break;
|
break;
|
||||||
case 'dark-theme':
|
case 'dark-theme':
|
||||||
root = this.widget.get_root();
|
root = this.widget.get_root();
|
||||||
if(!root || !root.isClapperApp)
|
if(!root) break;
|
||||||
break;
|
|
||||||
|
|
||||||
root.application._onThemeChanged(Gtk.Settings.get_default());
|
root.application._onThemeChanged(Gtk.Settings.get_default());
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user