mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
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:
@@ -18,7 +18,9 @@ const repeatIcons = [
|
||||
'media-playlist-shuffle-symbolic',
|
||||
];
|
||||
|
||||
var PlaylistWidget = GObject.registerClass(
|
||||
var PlaylistWidget = GObject.registerClass({
|
||||
GTypeName: 'ClapperPlaylistWidget',
|
||||
},
|
||||
class ClapperPlaylistWidget extends Gtk.ListBox
|
||||
{
|
||||
_init()
|
||||
@@ -234,7 +236,9 @@ class ClapperPlaylistWidget extends Gtk.ListBox
|
||||
}
|
||||
});
|
||||
|
||||
let PlaylistItem = GObject.registerClass(
|
||||
let PlaylistItem = GObject.registerClass({
|
||||
GTypeName: 'ClapperPlaylistItem',
|
||||
},
|
||||
class ClapperPlaylistItem extends Gtk.ListBoxRow
|
||||
{
|
||||
_init(uri)
|
||||
|
Reference in New Issue
Block a user