diff src/name/blackcap/clipman/PasteboardView.kt @ 47:19d9da731c43

Recoded; cleaned up root namespace, removed race conditions.
author David Barts <n5jrn@me.com>
date Sun, 12 Apr 2020 14:31:06 -0700
parents 0c6c18a733b7
children
line wrap: on
line diff
--- a/src/name/blackcap/clipman/PasteboardView.kt	Mon Feb 10 16:40:09 2020 -0700
+++ b/src/name/blackcap/clipman/PasteboardView.kt	Sun Apr 12 14:31:06 2020 -0700
@@ -56,7 +56,7 @@
      * Dynamically size or resize this view.
      */
     fun resize() {
-        autoSize(queue.v.parent.size.width -
+        autoSize(Application.queue.parent.size.width -
             2 * (PANEL_BORDER + OUTER_BORDER + INNER_BORDER + MARGIN_BORDER))
     }
 }
@@ -89,11 +89,11 @@
 class PasteboardItemView(label: String, val searchable: ClipText) {
     private val outerBorder =
         BorderFactory.createMatteBorder(OUTER_BORDER_TOP, OUTER_BORDER, OUTER_BORDER, OUTER_BORDER,
-            queue.v.parent.background)
+            Application.queue.parent.background)
 
     val contents = JPanel().apply {
         layout = BoxLayout(this, BoxLayout.Y_AXIS)
-        background = queue.v.parent.background
+        background = Application.queue.parent.background
         border = outerBorder
         add(JLabel(label).apply {
             horizontalAlignment = JLabel.LEFT