| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
This fixes the clippy warning new_without_default [0].
[0] https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
|
| |
|
|
|
|
| |
(Clippy also complains about `new()` without `impl Default`)
|
|
|
|
|
|
|
|
| |
Previously, we tried to read the user input from zenity’s stderr
although it is written to stdout. This patch changes the zenity backend
to read from stdout instead of stderr. It also removes trailing
newlines from the user input, as zenity adds a newline when writing the
input.
|
|
|
|
|
|
|
| |
This patch changes the default_backend to also check the DISPLAY
environment variable. If it is set, there probably is a X server
running, so we try to use the zenity backend. Otherwise, the dialog
backend is used.
|
|
|
|
|
|
|
|
|
|
| |
This patch refactors the default_backend function to return a Box<dyn
Backend> instead of impl Backend. This will allow us to dynamically
choose the backend implementation in a future patch. To keep the
current interface, we change show_with to accept both a reference to a
backend instance as well as a reference to a boxed backend instance.
This also means we have to implement AsRef<Self> for the backend
structs.
|
|
|