Commit graph

292 commits

Author SHA1 Message Date
lbonn
cfc3be4a5d Merge tag '1.7.0' into wayland 2021-09-06 13:16:48 +02:00
lbonn
deb9330a0d Merge commit '1a1dc7282f5ed010af874398b5b3d70ea7cda8e8' into wayland 2021-09-06 13:00:57 +02:00
Dave Davenport
1050c20c10 [Test] Remove old broken test scripts. 2021-08-22 00:03:43 +02:00
Dave Davenport
47f26ca2f1 [IconFetcher] Look for images in theme directories. 2021-08-17 11:05:03 +02:00
a1346054
c62137f8ab
Simple maintenance improvements (#1370)
* rofi moved to libera.chat

* unify some theme headers and whitespace

* consistently use the same hashbang for bash

* improve obsolete way of testing equality

see https://github.com/koalaman/shellcheck/wiki/SC2268 for explanation

* use consistent function definitions in bash scripts

* remove duplicated author and fix whitespace

* quote all variables in scripts

fixes many warnings identified through shellcheck

* fix whitespace in scripts

* fix whitespace in non-source files

* fix spelling in non-source files

* fix whitespace and indentation in source files

* fix spelling in source files
2021-08-14 13:03:16 +02:00
Dave Davenport
382a497c4e [Test] Fix some of the tests. 2021-07-06 23:49:17 +02:00
Dave Davenport
a1a0ed68f2 [Test] Fix tests. 2021-06-16 00:11:57 +02:00
Dave Davenport
1cac2c86f6 [Test] fix num keybindings in test. 2021-06-15 14:44:22 +02:00
Dave Davenport
b541bf55bc [Test] Fix meson test, remove gif dep from meson. 2021-06-15 12:55:03 +02:00
Dave Davenport
43957321d4 [Test] meson build updates. 2021-06-15 12:45:02 +02:00
Dave Davenport
74144db77d [Test] Fix the test. 2021-06-15 12:31:32 +02:00
TonCherAmi
12b2b38578
Fix tests. (#1323) 2021-06-05 12:58:07 +02:00
Dave Davenport
95c4e0424e Fix tests. 2021-06-01 14:21:21 +02:00
TonCherAmi
dc28a97437
Add cursor property (#1313)
* Change mouse cursor on widget hover

Currently only listview element and editbox are supported.

* Add cursor property
2021-05-23 00:17:27 +02:00
Dave Davenport
37044dc27e Remove -dump-xresources option update manpage. 2021-05-04 20:44:38 +02:00
lbonn
cef94af6e1 Merge remote-tracking branch 'upstream/next' into wayland 2020-09-29 21:10:56 +02:00
Dave Davenport
ee5fc74dd9 [Test] fix theme parser test for latest change in grammar parser 2020-09-13 17:48:39 +02:00
lbonn
90cfdf9990 Move some generic stuff from xcb.h to display.h 2020-07-24 19:30:02 +02:00
Dave Davenport
9a3d4b1d2e [Test] Fix compiler warning, theme test (bug in lexer) and more. 2020-04-26 11:43:14 +02:00
Dave Davenport
09704eb49c [Test] Use new RofiDistance format. 2020-04-26 11:12:23 +02:00
Jeff
83c2e467d5
Add support for additional field on script entries meta (#1052)
* Add test for hidden meta data in script mode

The purpose of this is to provide support for "hidden" fields on a
script item that work for search but don't get displayed.  This is
mostly to provide something similar to the optional display (but still
matchable) fields in drun like "categories" or "keywords".  This also
enables the choice to display unicode icons but still allow for
searching for the keywords without needing to print them.

* Ignore the output file from test runs

* Add support for the "meta" field on script entries

This fields provides a matchable but unprinted string for entries in a
script mode list match.  This means you can use one thing but provide
multiple options that can match that item without polluting the list
view or make confusing output.

* Add new test to test suite file
2020-02-01 13:49:11 +01:00
Dave Davenport
4e0dfb03b1 [Test] Fix building of tests.
Fixes: #1017
2019-09-27 10:43:29 +02:00
Dave Davenport
aa35ecc40a [DRun] Add keywords to match and printing. 2019-08-20 22:51:07 +02:00
Dave Davenport
618d1396ee
Issue949 (#999)
* [Issue 949] Add initial split of listview row into widget tree.

Allowing better themeing.

* Remove unneeded code from textbox. allow dis. icons.

* Fix typo.

* Fix wrong widget offset in textbox.

* Fix mouse handling

* [ListView] Add 'fixed-columns' boolean option.

* [Listview] Fix inversion of option.

* [ListView] remove commented old code.

* [Textbox] Handle null pointer on desired width.

* [Listview] Fix crasher with fixed_columns and more max elements requested items.

* Add hack to get backwards compatibility for new listview structure.

* Fix the scrollbar test.

* Fix tests for theme update..
2019-08-08 20:02:20 +02:00
Dave Davenport
52c5592a6f [ListView|Textbox] Add user-settable ellipsize mode.
Fixes: #917
2019-05-04 11:04:54 +02:00
Quentin Glidic
a6605b6f4d
tests: Fix mode_result test warning
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2019-04-19 10:07:43 +02:00
Dave Davenport
94ebd7e635 [Script] cleanup unnecessary $ from arithmetic variables. 2019-02-02 12:52:23 +01:00
Dave Davenport
f7daa9b1b1 [Scripts] Remove cat for pipe. 2019-02-02 12:39:41 +01:00
Dave Davenport
b30b50dc5a [Scripts] Do some fixes. 2019-02-02 12:35:37 +01:00
Dave Davenport
2f2abffb98 [CodeCY] More cleanup. 2019-02-02 12:07:36 +01:00
Dave Davenport
804f130d5b [CodeCY] Cleanup some more warnings given by CodeCY. 2019-02-02 11:53:33 +01:00
Dave Davenport
658f3993ba [TESTS] Remove (pointless) warning from helper tokenize. 2019-02-02 11:45:28 +01:00
Dave Davenport
c7243da062 [TESTS] Fix scrollbar/history-test assert argument format. 2019-02-02 11:38:33 +01:00
Dave Davenport
9f1a19b21e [TESTS] Fix helper-test assert argument format. 2019-02-02 11:34:54 +01:00
Dave Davenport
d506c09f85 [TEST] box-test fix commit polution. (oops). 2019-02-02 11:19:43 +01:00
Dave Davenport
63edf012bd [TESTS] Fix format data type in test asserts. 2019-02-02 11:17:50 +01:00
Dave Davenport
4e3a33acda [TESTS] Fix format data type in box-test asserts. 2019-02-02 11:12:01 +01:00
Till Hofmann
b77a48c628 tests: initialize char* in mode test (#875)
* tests: initialize char* in mode test

Currently, test_mode_result relies on undefined behavior.
The test calls mode_result, which checks whether the pointer is NULL.
However, the pointer was never initialized, so it may or may not be
NULL, depending on the compiler.

This caused a test failure on ppc64 and Fedora 28, apparently because in
this setting, gcc sets uninitialized pointers to NULL.

By initializing the pointer to the empty string, the behavior is defined
and the test passes on all architectures.

* mode: fix input pointer check in mode_result

Do not check whether *input (i.e., the char* the input points to) is
NULL, as this is valid. Instead, check whether the input itself is NULL.

* tests: make char* input arg in test_mode_result modifiable

The function mode_result expects a modifiable char*, initialize the
argument properly so it can be modified.
2018-12-14 17:05:07 +01:00
Dave Davenport
f80e7d52bc [Helper] Remove fixed key/values and accept keys with NULL as values. 2018-10-17 22:41:20 +02:00
Dave Davenport
e8edc42f9d [Helper] Quick and dirty string replacer with optional keys block.
First (quick and dirty) version of a more advanced key replacer where
sets of text are only outputted if the contained key matches.
2018-10-16 21:01:45 +02:00
Dave Davenport
09db7d5d3f [Tests] Fix window test. 2018-07-10 13:53:40 +02:00
Dave Davenport
a92bcc2818 [Theme] Change window layout for error dialog 2018-06-14 11:16:32 +02:00
Dave Davenport
1cd7698943 [Test] Helper:Pidfile generate tmp. pidfilename. 2018-05-16 22:07:53 +02:00
Dave Davenport
6efd73ff92 Remove duplicate test, use tempnam instead of hardcoded path.
Issue: #543
2018-03-07 21:23:49 +01:00
Dave Davenport
ba0acd625f Remove leading # from dump theme and add mesg about rofi dumping it 2017-10-31 19:29:27 +01:00
Dave Davenport
5312efb310 [Tests] Fix tests for theme-parser. 2017-10-22 13:20:29 +02:00
Askrenteam
0dc71fcc00 Added option -name-only to match only desktop entry name with drun (#690)
* Added option -name-only to match only desktop entry name with drun

* fixed indent and xrdump test

* fixed test

* option -drun-match-fields

* option -window-match-fields

* matching fields as static in window/drun + enums for field indexes

* prevent window_mode_parse_fields() from executing twice
2017-10-21 11:18:52 +02:00
Dave Davenport
dea962def5 Add Delta to float/double compare.
Issue: #692
2017-10-19 17:08:48 +02:00
Dave Davenport
91d88b1fd1 Rename tokenize to helper_tokenize 2017-10-01 10:51:02 +02:00
Dave Davenport
21e2e67412 Make tokenize test use libcheck.
- Add some tests for negate.
2017-09-29 18:44:21 +02:00