Name our classes

In order to not end up with random names prefixed with Gjs_, give each class a proper name, so its easier to inspect and allows usage with UI files
This commit is contained in:
Rafał Dzięgiel
2021-09-02 20:12:39 +02:00
parent 914292612b
commit dc25ec976a
20 changed files with 94 additions and 32 deletions

4
src/controls.js vendored
View File

@@ -9,7 +9,9 @@ const { settings } = Misc;
const INITIAL_ELAPSED = '00:00/00:00';
var Controls = GObject.registerClass(
var Controls = GObject.registerClass({
GTypeName: 'ClapperControls',
},
class ClapperControls extends Gtk.Box
{
_init()