| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
Now checks whether the received URI is a file (uses the `file` scheme)
and always adds a file button for those.
When the option is provided, the file path is output instead of the URI.
Also parses URIs from the command line.
|
|
|
|
|
| |
Otherwise consumers can't use verbose mode and interpret stdout at the
same time. stderr is usually used for all kinds of logging.
|
|
|
|
|
| |
If the current theme doesn't have an icon for our file, try a few
generic mimetypes instead.
|
|
|
|
|
|
|
|
|
| |
The recommended method is to set the child's `halign` property. However,
because our button has two children that automatically get wrapped in a
GtkAlignment container, we need to set the alignment of that child after
the image and the label have been added.
Also fix an assertion failure when no icon could be found for a file.
|
| |
|
|
|
|
|
|
| |
gtk_icon_theme_lookup_by_gicon was called with the
GTK_ICON_GENERIC_FALLBACK flag, which is not meaningful for that
function and produced a warning.
|
|
|
|
| |
Fixes #1, #2.
|
| |
|
| |
|
|
|
|
|
|
| |
When stdout was not a terminal the default buffering made it hard to
script the -t option usefully. With this commit, output is always line
buffered, so each URL dragged on will be printed immediately.
|
|
|
|
|
| |
When showing files as sources, dragon will now include the default icon
for the file type on the button as well as the name.
|
|
|
|
|
| |
The --help text didn't include --target, --and-exit, or --keep; with
this commit it does.
|
|
|
|
| |
These are short for --target and --and-exit, respectively.
|
|
|
|
|
|
| |
When --keep is given with --target, dragged data is retained as
draggable buttons and a new target button is provided at the bottom of
the list.
|
|
|
|
|
|
| |
With --target, dragons will accept a URI list or text dragged onto it,
printing the content to the terminal. With --and-exit also, will
terminate after printing dragged content.
|
|
|