aboutsummaryrefslogtreecommitdiff
path: root/dragon.c
Commit message (Collapse)AuthorAge
* Show thumbnails for images supported by GTKNathan Sketch2021-03-08
| | | | | | Thumbnail images will be displayed when icons are enabled, with the standard mime-type icons used for all non-image files. Thumbnails are generated internally by GTK.
* Add -I/--stdin option to read filenames from stdinNathan Sketch2021-03-08
| | | | | | This option expects one path per line (and so doesn't accept paths containing newlines). Files are treated as though passed on the command line, and the window will not appear until stdin is closed.
* Use --on-top, -T for always-on-top switchMichael Homer2021-01-16
| | | With `dragon -T ...`, the window will be marked always-on-top to allow dragging in/out of windows that would occlude it. The default with no option is a standard ("sometimes-on-top") window. In combination with 7a1ad24, this fixes #20.
* fix #20B Stack2021-01-16
|
* Quit with both esc and qtoniz42020-10-02
|
* Center icon if not displaying filenameGiovanny Lucas2020-04-19
|
* Add flag to toggle filename showingGiovanny Lucas2020-04-19
| | | | -i and --icon-only will suppress display of file names.
* Increment version number for releaseMichael Homer2019-11-15
|
* Prevent segfault when dragging a single item v2FichteFoll2019-11-02
|
* Prevent segfault when dragging a single itemFichteFoll2019-11-02
|
* Allow ASK drag actionFichteFoll2019-11-02
| | | | Also remove DEFAULT because that's documented as "not to be used".
* Remove random double indentFichteFoll2019-11-02
|
* Add debug prints for chosen action and succcessFichteFoll2019-11-02
|
* Fix debug printing of URIs in drag_all modeFichteFoll2019-11-02
| | | | | Printing all the URIs sent is not really informative, so just say "we sent them all".
* uri_collection needs to hold one more item than maxFichteFoll2019-11-02
| | | | | Because the last item needs to be NULL and is written in `drag_data_get`.
* Prevent memory corruption by checking MAX_SIZEFichteFoll2019-11-02
| | | | | This isn't exactly a "fix" but more like a "don't do anything stupid beyond this point".
* Increment version to 1.1.0Michael Homer2019-07-06
| | | | | This release introduces the -p option to print paths instead of file: URIs, and various bug fixes.
* Add verbose logging for drag receive eventsFichteFoll2019-07-05
|
* Option to print file paths in target modeFichteFoll2019-07-05
| | | | | | | | 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.
* Output debug messages on stderrFichteFoll2019-05-08
| | | | | Otherwise consumers can't use verbose mode and interpret stdout at the same time. stderr is usually used for all kinds of logging.
* Add fallback to generic iconsFichteFoll2019-05-08
| | | | | If the current theme doesn't have an icon for our file, try a few generic mimetypes instead.
* Remove deprecated gtk_button_set_alignment callFichteFoll2019-05-08
| | | | | | | | | 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.
* Unify whitespace (to spaces)FichteFoll2019-05-08
|
* Remove runtime warning about icon fallbackMichael Homer2018-04-27
| | | | | | 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.
* Let GIO handle URI buildingSebastian Reuße2018-04-25
| | | | Fixes #1, #2.
* Bump version to 1.0.0Michael Homer2018-04-13
|
* Add drag all featureAndre Pontes2017-06-22
|
* Set stdout to line buffered for scripting -tMichael Homer2014-08-15
| | | | | | 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.
* Show icons when displaying source buttonsMichael Homer2014-08-15
| | | | | When showing files as sources, dragon will now include the default icon for the file type on the button as well as the name.
* Update --help output with other modesMichael Homer2014-06-21
| | | | | The --help text didn't include --target, --and-exit, or --keep; with this commit it does.
* Add short options -t and -xMichael Homer2014-06-19
| | | | These are short for --target and --and-exit, respectively.
* Allow keeping dragged data around with --keepMichael Homer2014-06-19
| | | | | | 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.
* Allow use as a drag target tooMichael Homer2014-06-19
| | | | | | 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.
* Initial commitMichael Homer2014-06-19
bgstack15