more cleanup
This commit is contained in:
parent
1759e5c3de
commit
ec67a80389
|
@ -9,6 +9,7 @@ import org.pango.WrapMode
|
|||
class InstanceGridEntryFactory(
|
||||
private val instanceList: List<Instance>
|
||||
) : KSignalListItemFactory<InstanceGridEntryFactory.Decomposed, Box>() {
|
||||
//TODO better design
|
||||
override fun setup(): Box {
|
||||
val box = Box(Orientation.VERTICAL, 5)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue