Compare commits

..
14 changed files with 35 additions and 35 deletions

2
go.mod
View file

@ -1,4 +1,4 @@
module suruatoel.xyz/mcg module suruatoel.xyz/covergrid
go 1.25.0 go 1.25.0

View file

@ -10,7 +10,7 @@ import (
"sync" "sync"
"time" "time"
"suruatoel.xyz/mcg/internal/common" "suruatoel.xyz/covergrid/internal/common"
) )
type QueueItem struct { type QueueItem struct {

View file

@ -9,7 +9,7 @@ import (
"strings" "strings"
"time" "time"
"suruatoel.xyz/mcg/internal/i18n" "suruatoel.xyz/covergrid/internal/i18n"
) )
type Album struct { type Album struct {

View file

@ -5,8 +5,8 @@ import (
"github.com/diamondburned/gotk4-adwaita/pkg/adw" "github.com/diamondburned/gotk4-adwaita/pkg/adw"
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
"suruatoel.xyz/mcg/internal/common" "suruatoel.xyz/covergrid/internal/common"
) )
type albumHeaderbar struct { type albumHeaderbar struct {

View file

@ -9,9 +9,9 @@ import (
"github.com/diamondburned/gotk4/pkg/gio/v2" "github.com/diamondburned/gotk4/pkg/gio/v2"
"github.com/diamondburned/gotk4/pkg/glib/v2" "github.com/diamondburned/gotk4/pkg/glib/v2"
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
"suruatoel.xyz/mcg/internal/client" "suruatoel.xyz/covergrid/internal/client"
"suruatoel.xyz/mcg/internal/i18n" "suruatoel.xyz/covergrid/internal/i18n"
) )
type Application struct { type Application struct {
@ -24,7 +24,7 @@ type Application struct {
func NewApplication() *Application { func NewApplication() *Application {
app := Application{ app := Application{
Application: gtk.NewApplication("xyz.suruatoel.mcg", gio.ApplicationFlagsNone), Application: gtk.NewApplication("xyz.suruatoel.covergrid", gio.ApplicationFlagsNone),
} }
app.ConnectStartup(app.onStartup) app.ConnectStartup(app.onStartup)
app.ConnectActivate(app.onActivate) app.ConnectActivate(app.onActivate)
@ -102,13 +102,13 @@ func (a *Application) showAboutDialog() {
func (a *Application) newAboutDialog() *adw.AboutDialog { func (a *Application) newAboutDialog() *adw.AboutDialog {
dialog := adw.NewAboutDialog() dialog := adw.NewAboutDialog()
dialog.SetApplicationName("mcg") dialog.SetApplicationName("CoverGrid")
dialog.SetApplicationIcon("xyz.suruatoel.mcg") dialog.SetApplicationIcon("xyz.suruatoel.mcg")
dialog.SetVersion(a.Version()) dialog.SetVersion(a.Version())
dialog.SetComments(i18n.T("mcg is a client for the Music Player Daemon, focusing on albums instead of single tracks.")) dialog.SetComments(i18n.T("CoverGrid is a client for the Music Player Daemon, focusing on albums instead of single tracks."))
dialog.SetWebsite("https://www.suruatoel.xyz/codes/mcg") dialog.SetWebsite("https://www.suruatoel.xyz/codes/covergrid")
dialog.SetLicenseType(gtk.LicenseGPL30) dialog.SetLicenseType(gtk.LicenseGPL30)
dialog.SetIssueURL("https://git.suruatoel.xyz/coderkun/mcg") dialog.SetIssueURL("https://git.suruatoel.xyz/coderkun/covergrid")
return dialog return dialog
} }

View file

@ -3,7 +3,7 @@ package gui
import ( import (
"github.com/diamondburned/gotk4-adwaita/pkg/adw" "github.com/diamondburned/gotk4-adwaita/pkg/adw"
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
) )
type connectionPanel struct { type connectionPanel struct {

View file

@ -11,8 +11,8 @@ import (
"github.com/diamondburned/gotk4/pkg/core/gerror" "github.com/diamondburned/gotk4/pkg/core/gerror"
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2" "github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
"github.com/diamondburned/gotk4/pkg/glib/v2" "github.com/diamondburned/gotk4/pkg/glib/v2"
"suruatoel.xyz/mcg/internal/client" "suruatoel.xyz/covergrid/internal/client"
"suruatoel.xyz/mcg/internal/common" "suruatoel.xyz/covergrid/internal/common"
) )
type CoverLoader struct { type CoverLoader struct {

View file

@ -10,10 +10,10 @@ import (
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2" "github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
"github.com/diamondburned/gotk4/pkg/glib/v2" "github.com/diamondburned/gotk4/pkg/glib/v2"
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
"suruatoel.xyz/mcg/internal/client" "suruatoel.xyz/covergrid/internal/client"
"suruatoel.xyz/mcg/internal/common" "suruatoel.xyz/covergrid/internal/common"
"suruatoel.xyz/mcg/internal/i18n" "suruatoel.xyz/covergrid/internal/i18n"
) )
type coverPanel struct { type coverPanel struct {

View file

@ -12,9 +12,9 @@ import (
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2" "github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
"github.com/diamondburned/gotk4/pkg/glib/v2" "github.com/diamondburned/gotk4/pkg/glib/v2"
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
"suruatoel.xyz/mcg/internal/client" "suruatoel.xyz/covergrid/internal/client"
"suruatoel.xyz/mcg/internal/common" "suruatoel.xyz/covergrid/internal/common"
) )
type libraryPanel struct { type libraryPanel struct {

View file

@ -9,9 +9,9 @@ import (
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2" "github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
"github.com/diamondburned/gotk4/pkg/glib/v2" "github.com/diamondburned/gotk4/pkg/glib/v2"
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
"suruatoel.xyz/mcg/internal/client" "suruatoel.xyz/covergrid/internal/client"
"suruatoel.xyz/mcg/internal/common" "suruatoel.xyz/covergrid/internal/common"
) )
type playlistPanel struct { type playlistPanel struct {

View file

@ -6,8 +6,8 @@ import (
"github.com/diamondburned/gotk4-adwaita/pkg/adw" "github.com/diamondburned/gotk4-adwaita/pkg/adw"
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
"suruatoel.xyz/mcg/internal/common" "suruatoel.xyz/covergrid/internal/common"
) )
type serverPanel struct { type serverPanel struct {

View file

@ -2,7 +2,7 @@ package gui
import ( import (
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
) )
type shortcutsDialog struct { type shortcutsDialog struct {

View file

@ -9,10 +9,10 @@ import (
"github.com/diamondburned/gotk4/pkg/gio/v2" "github.com/diamondburned/gotk4/pkg/gio/v2"
"github.com/diamondburned/gotk4/pkg/glib/v2" "github.com/diamondburned/gotk4/pkg/glib/v2"
"github.com/diamondburned/gotk4/pkg/gtk/v4" "github.com/diamondburned/gotk4/pkg/gtk/v4"
"suruatoel.xyz/mcg/data" "suruatoel.xyz/covergrid/data"
"suruatoel.xyz/mcg/internal/client" "suruatoel.xyz/covergrid/internal/client"
"suruatoel.xyz/mcg/internal/common" "suruatoel.xyz/covergrid/internal/common"
"suruatoel.xyz/mcg/internal/i18n" "suruatoel.xyz/covergrid/internal/i18n"
) )
type Panel interface { type Panel interface {

View file

@ -3,8 +3,8 @@ package main
import ( import (
"os" "os"
"suruatoel.xyz/mcg/internal/gui" "suruatoel.xyz/covergrid/internal/gui"
"suruatoel.xyz/mcg/internal/i18n" "suruatoel.xyz/covergrid/internal/i18n"
) )
func main() { func main() {