Commit graph

188 commits

Author SHA1 Message Date
Dave Davenport
d0d1869604 Fix test? 2016-10-19 21:39:43 +02:00
Dave Davenport
ba2188d649 Print out diff. 2016-10-19 21:19:19 +02:00
Dave Davenport
a78d0b53fc Add help output compare test. 2016-10-19 13:12:55 +02:00
Dave Davenport
7b3b68462e Fix memory leak in box and listview widget, add coverage make target. (ggcov and lcov) 2016-10-18 13:49:24 +02:00
Dave Davenport
cc496c38ee check coverall behaviour 2016-10-13 18:29:32 +02:00
Dave Davenport
306eeac3fe Add some NULL tests to widget test 2016-10-13 17:54:52 +02:00
Dave Davenport
1cd94c27c7 Update documentation, tests for widget 2016-10-13 09:22:08 +02:00
Dave Davenport
f3298801f3 Split internal widget into separate file 2016-10-09 10:13:15 +02:00
Dave Davenport
3c64507f02 Qtk widgets (#478)
* Initial support for using boxes for packing widgets.

* Make CapiTalIzation more consistent

* Move widgets to subdirectory

* Removed nolonger needed resize function.

* Small cleanup

* When switching mode, reuse view, don't rebuild it. Reduces artifacts.

* Needs cleaning up.

* Remove separate prompt argument, use display_name

* Simplify run-switcher code.

* Add notion of parents, and trigger parent update on resize.

* Use widget_get_height wrapper, avoid crash

* Size separator width based on height. (indent)

 * TODO add margin to box.

* First draft version of listview.

* Add scrollbar to listview widget

* Add padding option to box

* Move access to global config out of widget. (1/2 done)

*  Remove printf

* Make listview not access global config

* Add click support, implement on mode buttons.

* Re-introduce mouse handling on list-view.

* TODO draggin on scrollbar.

* Fix multi-select

* Fix warnings

* Fix include
2016-10-08 18:57:59 +02:00
Dave Davenport
0da0587087 Make widget_free work on textbox and scrollbar, use widget specific free. 2016-09-27 22:38:26 +02:00
Dave Davenport
20e55e1e4e Add fuzzy matching, make a -matching option.
* -matching *method* option instead of -regex, -glob, -fuzzy.
 * Re-add fuzzy matching pattern.
 * When there are substrings in regex, only highlight those matches.

Fixes: #447
2016-08-25 21:17:58 +02:00
Dave Davenport
e55dfe8b10 Test something 2016-08-19 19:40:39 +02:00
Dave Davenport
de0290906d Update test to change multi-select and return codes. 2016-07-22 16:25:49 +02:00
Dave Davenport
7e1ea5290d Update tests 2016-07-19 00:16:49 +02:00
Dave Davenport
ad5b985abe Forgot normal-window test 2016-06-26 11:10:50 +02:00
Dave Davenport
c87e91b6d9 Make select behave more Rasi-ish 2016-06-26 11:00:23 +02:00
Dave Davenport
03239cb989 Remove fuzzy matching option. 2016-06-18 20:54:29 +02:00
Dave Davenport
0b84d63959 Merge remote-tracking branch 'origin/master' into highlight_match 2016-06-07 09:02:03 +02:00
Dave Davenport
9149e35248 Try to enable xinerama for tests 2016-06-02 08:39:40 +02:00
Dave Davenport
72d6c20876 Merge remote-tracking branch 'origin/master' into highlight_match 2016-06-01 19:04:52 +02:00
Dave Davenport
c095476419 Add extra test for widget. 2016-06-01 07:57:04 +02:00
Dave Davenport
f96461a543 Remove invalid tests. 2016-05-27 09:34:17 +02:00
Dave Davenport
96cb3a8695 Remove fgets and replace by getline. 2016-04-10 14:30:13 +02:00
Dave Davenport
b63f8e2275 Move history to getline and remove magic limit. 2016-04-10 13:55:18 +02:00
Dave Davenport
6693799923 Split test for helper in separate test for config cmdline parser. 2016-03-22 10:43:42 +01:00
Dave Davenport
3ac0c6dd7d Quick fix. 2016-03-21 20:27:16 +01:00
Dave Davenport
8914fbf2df Split test in 2. 2016-03-21 17:16:45 +01:00
Quentin Glidic
86c8934b86 test-x: Remove daemon mode test
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-20 11:56:28 +01:00
Dave Davenport
1aed0427f9 Remove hack with config file. 2016-03-05 20:16:10 +01:00
Dave Davenport
fa7ceaf580 Check for the availability of the xinerama extension. 2016-03-04 17:03:24 +01:00
Dave Davenport
b4cc0f611b Fix build test 2016-03-03 08:23:12 +01:00
Dave Davenport
7d046a1f5b Pack magic externs into a xcb_stuff. 2016-03-01 18:11:55 +01:00
Dave Davenport
a4fd907fe8 Run indenter 2016-02-28 15:32:53 +01:00
Dave Davenport
594bf00194 Fix keybindings and fix tests 2016-02-28 13:08:08 +01:00
Quentin Glidic
909241ddfe Remove X11 headers includes
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-28 12:21:26 +01:00
Dave Davenport
ab57479da9 Remove Atom with xcb_atom_t. 2016-02-28 12:19:56 +01:00
Dave Davenport
6d0d6d9eb2 Tests. 2016-02-28 01:21:22 +01:00
Dave Davenport
be76712dba Fix tests. 2016-02-21 16:40:29 +01:00
Dave Davenport
d3a044db8e Fixing make dist after merge of make cleanups. 2016-02-21 12:57:30 +01:00
Dave Davenport
5a86ae5c99 Cleanups 2016-02-08 09:03:11 +01:00
Dave Davenport
adfc83f07d Restructuring, my biggest joy. 2016-02-06 14:27:36 +01:00
Dave Davenport
312ca274fc Split of files. 2016-02-06 13:06:58 +01:00
Dave Davenport
531f3f884a Merge remote-tracking branch 'origin/master' into glib-loop 2016-02-04 16:25:04 +01:00
Dave Davenport
b557c4df6e Issue: #333, Check if row is selected, don't assume selected_line is valid. 2016-02-03 09:01:13 +01:00
Dave Davenport
f42258f60a Merge remote-tracking branch 'origin/master' into glib-loop 2016-01-25 20:46:11 +01:00
Dave Davenport
c4b6b19ff9 Fix test for empty dmenu list 2016-01-25 09:07:39 +01:00
Dave Davenport
984257fffc Very dirty first attempt at glib mainloop in switcher (not yet dmenu.) 2016-01-20 20:57:26 +01:00
Dave Davenport
c2105430a0 Update Tests 2016-01-17 13:47:25 +01:00
Dave Davenport
c6a9de8c4a Use snprintf instead of sprintf 2016-01-09 19:25:03 +01:00
Dave Davenport
d7dab65e5b Making widget class, moving stuff around 2016-01-09 16:22:09 +01:00
Dave Davenport
06c7f30b7e Use timeout. 2016-01-08 23:15:28 +01:00
Dave Davenport
6dd837af88 Add debug. 2016-01-08 22:17:00 +01:00
Dave Davenport
fa51aeb484 More splitting and abstracting. 2016-01-07 21:27:20 +01:00
Dave Davenport
51b5511017 More doxygen sugar. 2016-01-07 16:01:56 +01:00
Dave Davenport
4fbf249480 Update window test. 2016-01-05 18:24:47 +01:00
Dave Davenport
155cf351e0 Update window test. 2016-01-05 18:19:35 +01:00
Dave Davenport
933eb7e490 Fix normal window test 2016-01-05 17:14:47 +01:00
Dave Davenport
68220a5b58 Add fluxbox as wm for tests. 2016-01-05 16:46:43 +01:00
Dave Davenport
200f8e5faa Do not test the ones that require window manager. 2016-01-04 21:51:08 +01:00
Dave Davenport
fefd992c11 Merge branch 'master' of github:DaveDavenport/rofi 2016-01-04 20:56:54 +01:00
Dave Davenport
f715a33bf7 Add window manager as test if possible 2016-01-04 20:46:34 +01:00
Dave Davenport
09c7b33026 Small test. 2016-01-04 18:34:41 +01:00
Dave Davenport
05a1be9753 Another silly test to make sure this code is hit and should show breakage. 2016-01-04 18:26:18 +01:00
Dave Davenport
dac711cf22 Add fuzzy test. 2016-01-04 18:04:15 +01:00
Dave Davenport
d661a515f0 Make levenshtein sort utf8 aware and obey case sensitive setting.
- Add tests.
        - Use Glibs unichar for comparison.
2016-01-04 17:18:49 +01:00
Dave Davenport
c85f1cb0bf Use different syntax 2016-01-03 21:47:40 +01:00
Dave Davenport
96724356e1 Do not use seq for test, use bash range instead. 2016-01-03 21:12:09 +01:00
Dave Davenport
d370a446f3 Add config loading test. 2016-01-03 18:13:41 +01:00
Dave Davenport
4fbbce891b Test glob/regex. 2016-01-01 11:31:29 +01:00
Dave Davenport
58c856e22a Add combi test 2015-12-31 23:27:06 +01:00
Dave Davenport
ade91a3875 Add simple drun test 2015-12-31 23:14:38 +01:00
Dave Davenport
e102e11637 Update test 2015-12-31 23:02:13 +01:00
Dave Davenport
c5258f9b51 Add dump test. 2015-12-31 22:45:36 +01:00
Dave Davenport
7364e9abf9 Add daemon test. 2015-12-31 22:20:43 +01:00
Dave Davenport
745f9f3c62 Add screenshot test 2015-12-31 21:55:15 +01:00
Dave Davenport
c49c47542c Fix textbox test, set global PangoContext 2015-12-28 11:33:22 +01:00
Dave Davenport
38fabb6b1b Issue #303: Create one pango context from xlib surface
- Create one pango context and set font options from main xlib surface
        - Set font type on global pango context.
        - Use CAIRO_OPERATOR_OVER for drawing text (otherwise subpixel rendering is not done).
2015-12-28 11:27:27 +01:00
Dave Davenport
0a899185f8 Indenting fix 2015-12-23 19:16:47 +01:00
Dave Davenport
7a9263e929 Extend test case. 2015-12-08 22:47:54 +01:00
Dave Davenport
bb68cded68 tweak 2015-12-08 08:44:44 +01:00
Dave Davenport
0ff0f15264 Add test, remove whitespace 2015-12-08 08:39:18 +01:00
Dave Davenport
a5c5ca9f1d Add test for issue #292 2015-12-04 22:13:30 +01:00
Dave Davenport
eaa553bfd5 Indent. 2015-12-03 22:48:30 +01:00
Dave Davenport
e4c7fe8f1e Fix func. def in wrong header file. 2015-12-02 17:56:25 +01:00
Dave Davenport
a21f8dd179 Add some helper tests. 2015-12-02 09:53:39 +01:00
Dave Davenport
f6c8ba9755 Add test for recent bug. 2015-12-02 09:46:13 +01:00
Dave Davenport
ca6b1a8178 Fixing path. 2015-11-28 12:59:10 +01:00
Dave Davenport
f9fe70338f More travis poking 2015-11-27 13:23:40 +01:00
Dave Davenport
4510f65d5a textbox: advance cursor correctly for multi-char input
Thanks to eigengrau
fixes: #280
2015-11-22 20:41:45 +01:00
Qball Cow
1bd231bc3d Fix issue #275: don't try to do move cursor when nothing is shown. 2015-11-20 11:43:22 +01:00
Qball Cow
264e9e5b0e Issue #275 test case 2015-11-20 11:19:36 +01:00
Dave Davenport
02b99e6f95 Fix: 256 Do not accept custom entry when not applicable.
Add test to reproducet .
2015-10-31 18:04:55 +01:00
QC
683632c36c Some cleanups 2015-10-18 19:02:19 +02:00
QC
93b6b83fb9 Try todo some validation of monitor size/padding in config sanity check. 2015-10-18 13:40:39 +02:00
Dave Davenport
b7d9b4b6b5 Add debug output to test 4 2015-10-11 13:51:08 +02:00
QC
29360b20aa Parse name in textbox. 2015-09-28 21:41:58 +02:00
QC
8f1f03e6d2 Use cairo to do drawing. 2015-09-26 20:34:34 +02:00
QC
b18d68eff2 Adjust new editor width 2015-09-19 12:57:48 +02:00
QC
442e235c24 Some cleanups, tweak uncrustify. 2015-09-19 12:21:30 +02:00
QC
558bb38630 Fix normal mode keyboard grab. 2015-09-16 21:01:40 +02:00