From ec67a803892096e457cf0dc778f12fea81aa6ead Mon Sep 17 00:00:00 2001 From: JFronny Date: Fri, 14 Jul 2023 16:25:52 +0200 Subject: [PATCH] more cleanup --- .../jfronny/inceptum/gtk/control/InstanceGridEntryFactory.kt | 1 + .../kotlin/io/gitlab/jfronny/inceptum/gtk/menu/BuiltMenuItem.kt | 1 - .../src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/util/I18n.kt | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/control/InstanceGridEntryFactory.kt b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/control/InstanceGridEntryFactory.kt index 12b7b45..95493af 100644 --- a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/control/InstanceGridEntryFactory.kt +++ b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/control/InstanceGridEntryFactory.kt @@ -9,6 +9,7 @@ import org.pango.WrapMode class InstanceGridEntryFactory( private val instanceList: List ) : KSignalListItemFactory() { + //TODO better design override fun setup(): Box { val box = Box(Orientation.VERTICAL, 5) diff --git a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/menu/BuiltMenuItem.kt b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/menu/BuiltMenuItem.kt index d21a780..f745929 100644 --- a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/menu/BuiltMenuItem.kt +++ b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/menu/BuiltMenuItem.kt @@ -5,7 +5,6 @@ import org.gnome.gio.SimpleAction import org.gnome.gio.ThemedIcon abstract class BuiltMenuItem protected constructor(action: SimpleAction, protected val menuItem: MenuItem?) { - @JvmField protected val action: SimpleAction init { diff --git a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/util/I18n.kt b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/util/I18n.kt index fa44eb8..9a63c33 100644 --- a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/util/I18n.kt +++ b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/util/I18n.kt @@ -7,11 +7,9 @@ object I18n { const val BUNDLE = "inceptum" private val bundle = ResourceBundle.getBundle(BUNDLE) - @JvmStatic operator fun get(key: @PropertyKey(resourceBundle = BUNDLE) String): String = bundle.getString(key) - @JvmStatic operator fun get(key: @PropertyKey(resourceBundle = BUNDLE) String, vararg args: Any?): String = String.format(bundle.getString(key), *args) }