▾ modified src/frq/cosmic.clj +3 -2 Viewed
@@ -36,11 +36,12 @@ 36 36 ( defn -main [ & _ ] 37 37 ;; What frq asks of glimmer-jvui directly, answered by this backend instead: 38 38 ;; jvui's timers only run inside jvui's loop, its quit closes jvui's window, 39 - ;; and it has no picture chooser on a desktop. 39 + ;; its picture chooser and its clipboard of pictures belong to jvui's window. 40 40 ( platform/override! { :after! cosmic/after! 41 41 :quit! cosmic/quit! 42 42 :pick-image! cosmic/pick-image! 43 - :picked-image! cosmic/picked-image! } ) 43 + :picked-image! cosmic/picked-image! 44 + :clipboard-image-png! cosmic/clipboard-image-png! } ) 44 45 ( when-let [ path ( not-empty ( System/getenv "FRQ_COSMIC_DUMP" ) ) ] 45 46 ( dump-tree-to! path ) ) 46 47 ( app/start! { :after! cosmic/after!
@@ -36,11 +36,12 @@ 36 ( defn -main [ & _ ] 36 ( defn -main [ & _ ] 37 ;; What frq asks of glimmer-jvui directly, answered by this backend instead: 37 ;; What frq asks of glimmer-jvui directly, answered by this backend instead: 38 ;; jvui's timers only run inside jvui's loop, its quit closes jvui's window, 38 ;; jvui's timers only run inside jvui's loop, its quit closes jvui's window, 39 - ;; and it has no picture chooser on a desktop. 39 + ;; its picture chooser and its clipboard of pictures belong to jvui's window. 40 ( platform/override! { :after! cosmic/after! 40 ( platform/override! { :after! cosmic/after! 41 :quit! cosmic/quit! 41 :quit! cosmic/quit! 42 :pick-image! cosmic/pick-image! 42 :pick-image! cosmic/pick-image! 43 - :picked-image! cosmic/picked-image! } ) 43 + :picked-image! cosmic/picked-image! 44 + :clipboard-image-png! cosmic/clipboard-image-png! } ) 44 ( when-let [ path ( not-empty ( System/getenv "FRQ_COSMIC_DUMP" ) ) ] 45 ( when-let [ path ( not-empty ( System/getenv "FRQ_COSMIC_DUMP" ) ) ] 45 ( dump-tree-to! path ) ) 46 ( dump-tree-to! path ) ) 46 ( app/start! { :after! cosmic/after! 47 ( app/start! { :after! cosmic/after!
▾ modified src/frq/state.clj +2 -3 Viewed
@@ -18,8 +18,7 @@ 18 18 [ frq.oauth :as oauth ] 19 19 [ frq.platform :as platform ] 20 20 [ frq.store :as store ] 21 - [ frq.upload :as upload ] 22 - [ glimmer-jvui.core :as gui ] ) ) 21 + [ frq.upload :as upload ] ) ) 23 22 24 23 ( def default-host "irc.freeq.at" ) 25 24 ( def default-port "6697" ) @@ -1368,7 +1367,7 @@ 1368 1367 [ ] 1369 1368 ( let [ path ( paste-path ) ] 1370 1369 ( host/mkdirs! ( str ( media/cache-dir ) "/outgoing" ) ) 1371 - ( if-not ( gui/clipboard-image-png! path ) 1370 + ( if-not ( platform/clipboard-image-png! path ) 1372 1371 ;; Android has no clipboard of pictures to read at all, which is the 1373 1372 ;; other half of why the picker below exists. 1374 1373 ( reset! error "No picture on the clipboard." )
@@ -18,8 +18,7 @@ 18 [ frq.oauth :as oauth ] 18 [ frq.oauth :as oauth ] 19 [ frq.platform :as platform ] 19 [ frq.platform :as platform ] 20 [ frq.store :as store ] 20 [ frq.store :as store ] 21 - [ frq.upload :as upload ] 21 + [ frq.upload :as upload ] ) ) 22 - [ glimmer-jvui.core :as gui ] ) ) 23 22 24 ( def default-host "irc.freeq.at" ) 23 ( def default-host "irc.freeq.at" ) 25 ( def default-port "6697" ) 24 ( def default-port "6697" ) @@ -1368,7 +1367,7 @@ 1368 [ ] 1367 [ ] 1369 ( let [ path ( paste-path ) ] 1368 ( let [ path ( paste-path ) ] 1370 ( host/mkdirs! ( str ( media/cache-dir ) "/outgoing" ) ) 1369 ( host/mkdirs! ( str ( media/cache-dir ) "/outgoing" ) ) 1371 - ( if-not ( gui/clipboard-image-png! path ) 1370 + ( if-not ( platform/clipboard-image-png! path ) 1372 ;; Android has no clipboard of pictures to read at all, which is the 1371 ;; Android has no clipboard of pictures to read at all, which is the 1373 ;; other half of why the picker below exists. 1372 ;; other half of why the picker below exists. 1374 ( reset! error "No picture on the clipboard." ) 1373 ( reset! error "No picture on the clipboard." )