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

View File

@@ -4,7 +4,9 @@ const Misc = imports.src.misc;
const { debug } = Debug;
var HeaderBarBase = GObject.registerClass(
var HeaderBarBase = GObject.registerClass({
GTypeName: 'ClapperHeaderBarBase',
},
class ClapperHeaderBarBase extends Gtk.Box
{
_init()
@@ -259,7 +261,9 @@ class ClapperHeaderBarBase extends Gtk.Box
}
});
var HeaderBarPopover = GObject.registerClass(
var HeaderBarPopover = GObject.registerClass({
GTypeName: 'ClapperHeaderBarPopover',
},
class ClapperHeaderBarPopover extends Gtk.PopoverMenu
{
_init(model)