mirror of https://codeberg.org/cage/tinmop/
- [GUI] improved certificates window;
- removed useless code.
This commit is contained in:
parent
902cf57657
commit
1e658fbe6c
|
@ -63,7 +63,8 @@
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(a:when-let* ((uri (gui-mw:text-input-dialog certificate-frame
|
(a:when-let* ((uri (gui-mw:text-input-dialog certificate-frame
|
||||||
(_ "Information")
|
(_ "Information")
|
||||||
(_ "Type the net address the certificate is valid for:")))
|
(_ "Type the net address the certificate is valid for:")
|
||||||
|
:text (strcat gemini-constants:+gemini-scheme+ "://")))
|
||||||
(cert-file (gui:get-open-file :initial-dir "."
|
(cert-file (gui:get-open-file :initial-dir "."
|
||||||
:parent certificate-frame
|
:parent certificate-frame
|
||||||
:multiple nil
|
:multiple nil
|
||||||
|
@ -88,14 +89,18 @@
|
||||||
(gui:with-modal-toplevel (toplevel :master master :title (_ "Certificates"))
|
(gui:with-modal-toplevel (toplevel :master master :title (_ "Certificates"))
|
||||||
(gui:transient toplevel master)
|
(gui:transient toplevel master)
|
||||||
(let* ((table (make-instance 'certificate-frame :master toplevel))
|
(let* ((table (make-instance 'certificate-frame :master toplevel))
|
||||||
|
(buttons-frame (make-instance 'gui:frame :master toplevel))
|
||||||
(delete-button (make-instance 'gui:button
|
(delete-button (make-instance 'gui:button
|
||||||
:master toplevel
|
:master buttons-frame
|
||||||
:image icons:*document-delete*
|
:image icons:*document-delete*
|
||||||
:command (delete-certificates-clsr table)))
|
:command (delete-certificates-clsr table)))
|
||||||
(import-button (make-instance 'gui:button
|
(import-button (make-instance 'gui:button
|
||||||
:master toplevel
|
:master buttons-frame
|
||||||
:image icons:*document-add*
|
:image icons:*document-add*
|
||||||
:command (import-certificates-clsr table))))
|
:command (import-certificates-clsr table))))
|
||||||
(gui:grid table 0 0 :sticky :news :columnspan 2)
|
(gui-goodies:attach-tooltips (delete-button (_ "delete selected certificates"))
|
||||||
(gui:grid delete-button 1 0 :sticky :w)
|
(import-button (_ "import certificate form disk")))
|
||||||
(gui:grid import-button 1 1 :sticky :w))))
|
(gui:grid table 0 0 :sticky :nwe)
|
||||||
|
(gui:grid buttons-frame 1 0 :sticky :s)
|
||||||
|
(gui:grid delete-button 0 0 :sticky :s)
|
||||||
|
(gui:grid import-button 0 1 :sticky :s))))
|
||||||
|
|
|
@ -87,9 +87,8 @@
|
||||||
:code code
|
:code code
|
||||||
:data data
|
:data data
|
||||||
:text message))
|
:text message))
|
||||||
(progn
|
(values (rpc:extract-results raw-response)
|
||||||
(values (rpc:extract-results raw-response)
|
raw-response)))))
|
||||||
raw-response))))))
|
|
||||||
|
|
||||||
(defun close-server ()
|
(defun close-server ()
|
||||||
(make-request :quit-program 1))
|
(make-request :quit-program 1))
|
||||||
|
|
Loading…
Reference in New Issue