Commit graph

157 commits

Author SHA1 Message Date
QC
366813fdec Wonder if this fixes the warning. 2015-01-07 18:02:18 +01:00
QC
7428d94612 Remove check, selected_line is not NULL. 2015-01-07 17:44:41 +01:00
QC
19d8ce279b Initialize savept to NULL. (coverity) 2015-01-07 17:37:53 +01:00
Dave Davenport
a28b6df307 Add support custom command. 2015-01-05 21:53:50 +01:00
QC
7ee64b258d Fix memory leak of sidebar mode switcher boxes. 2015-01-04 13:24:08 +01:00
QC
8afba6e875 Bug #98: Select a certain line.
* -l select line
2014-12-16 21:08:12 +01:00
Dave Davenport
0b34b958a6 Static fest. 2014-12-02 10:04:28 +01:00
Dave Davenport
781ca03f02 Small moving to helper. 2014-12-02 09:09:20 +01:00
Dave Davenport
59ee49a557 [TextBox] fix alignment issue with cursor. 2014-12-02 08:11:53 +01:00
QC
d393a5ff2e I am to tired to commit, lets try again. 2014-11-29 17:15:13 +01:00
QC
e2a3139b7d Small update trying to fix past commit. 2014-11-29 16:54:42 +01:00
QC
6805d93f68 Update previous commit with manpage fix window switcher. 2014-11-29 16:35:43 +01:00
qedi
21235b0600 Force custom commandline when Ctrl-Return is used 2014-11-28 22:24:07 -05:00
Dave Davenport
2c9f33a1bd More commenting.
Code    Comment  Comment %      Blank      Total  File
------  ---------  ---------  ---------  ---------  -----------------
    36         69      65.7%          2        107  config.c
    66         31      32.0%         14        111  dmenu-dialog.c
   185         52      21.9%         19        256  helper.c
   179         66      26.9%         27        272  history.c
  1896        325      14.6%        345       2566  rofi.c
   197         45      18.6%         42        284  run-dialog.c
   144         31      17.7%         24        199  script-dialog.c
   171         42      19.7%         31        244  ssh-dialog.c
   350         69      16.5%         84        503  textbox.c
   151         37      19.7%         27        215  xrmoptions.c
    26          0       0.0%          5         31  helper-test.c
    65          6       8.5%         35        106  history-test.c
   109          5       4.4%         22        136  textbox-test.c
    34         33      49.3%         24         91  config.h
     5         10      66.7%          4         19  dmenu-dialog.h
    11         70      86.4%         10         91  helper.h
     9         46      83.6%          8         63  history.h
    83        128      60.7%         17        228  rofi.h
     4          8      66.7%          2         14  run-dialog.h
    11         26      70.3%          5         42  script-dialog.h
     4          8      66.7%          2         14  ssh-dialog.h
    64        142      68.9%         31        237  textbox.h
     6         13      68.4%          4         23  xrmoptions.h
2014-11-25 12:57:34 +01:00
Qball Cow
ce25bf3f50 Issue #91 Reverse order of headers to fix build. 2014-11-24 13:19:24 +01:00
QC
66349a00dc Small updates. 2014-11-15 16:26:55 +01:00
Dave Davenport
05cab7a37a Fix indenting. 2014-11-12 17:49:13 +01:00
QC
c37ceb3e62 Fix error with entry box being empty. 2014-11-11 23:07:57 +01:00
QC
f710912042 Add ctrl-/ as reverse tab. 2014-11-11 21:50:16 +01:00
Qball Cow
cd8abd1153 Fix small graphical glix tabs
* They where to close to bottom.
2014-11-10 10:14:36 +01:00
Dave Davenport
9eb59fb616 [FullHeight] Fix height calculation
* Take window border into account.
2014-11-10 09:29:20 +01:00
Dave Davenport
950a177f97 [Sidebar mode] Allow tabs to be clicked. 2014-11-10 09:19:50 +01:00
Dave Davenport
0ccd7ef6bf Try to make sidebar separator visible again. 2014-11-10 08:59:39 +01:00
QC
ab82941b5e Add sidebar modi to ROFI. 2014-11-09 13:10:24 +01:00
Dave Davenport
c549c4f72d Reload configuration in daemon mode on SIGHUP 2014-11-05 10:52:10 +01:00
Dave Davenport
b27725834c If argv[0] is dmenu, launch in dmenu mode. 2014-11-05 10:36:26 +01:00
Dave Davenport
da7ba544fc Always use right display str. 2014-11-04 16:37:05 +01:00
Dave Davenport
f56bd03a86 Add multi-line elements support. 2014-10-30 17:53:22 +01:00
QC
f728e3f03e Add separator option. 2014-10-19 19:42:02 +02:00
QC
48bc2afb3e Indent. 2014-09-27 13:20:52 +02:00
Dave Davenport
404dc35c02 Fix some constness and add comments. 2014-09-23 09:24:24 +02:00
QC
15bee1f543 Add source files and man page.
* Add bugtracker to manpage.
        * Print msg to stderr, when error dialog not available.
2014-09-06 14:57:30 +02:00
QC
10322b45a5 Fix #81, this should now work correctly.
* Put old (broken) simpleswitcher code back.
        * Fix call to window_get_prop
        * Translate address with XTranslateCoordinates.
2014-09-05 17:14:50 +02:00
QC
20dca49a22 Add ctrl-space to set selected item as input. 2014-09-03 19:40:24 +02:00
Dave Davenport
0462811800 Add flexible configuration for launching
* You can now specify links: {terminal} -e bash -e "{ssh-client} {host}"
    * Add test for this code.
2014-09-03 13:07:26 +02:00
Dave Davenport
562ace6b78 small cleanup error_dialog, remove dummy calc 2014-08-28 10:10:16 +02:00
Dave Davenport
0795cfda8d Add display text modi. 2014-08-27 19:44:15 +02:00
Dave Davenport
e44183b406 Refactor the to-long menu() function.
* Split out larger sub-parts into separate functions.
    * Create a state structure.
    * Remove zeltak mode.
2014-08-26 20:25:00 +02:00
QC
24e7041604 Use g_spawn instead of fork+exec*
* Avoids issue with atexit being called for fork.
        * less code.
2014-08-25 20:02:48 +02:00
Dave Davenport
30051c8e80 issue: #79: Crash when enter on empty list.
* This fixes the reproducable part of the bug. (enter on empty list)
    * check selected < filtered_lines. so we do not try to dereference a null pointer.
2014-08-25 17:48:42 +02:00
Dave Davenport
04e13e3a20 Fix compile warnings. 2014-08-24 15:21:35 +02:00
QC
02ef657c41 [Click to select] Only select visible boxes. 2014-08-24 11:24:35 +02:00
QC
ba6a055683 Fix #59: Add some basic mouse support.
* TOOD: fix double click.
2014-08-23 12:47:09 +02:00
Dave Davenport
b665e85e69 Fix compile warnings with CLANG.
* signed compare with unsigned.
2014-08-22 17:29:15 +02:00
Dave Davenport
86b7571e04 Cleanup warnings.
* unused var and arguments.
2014-08-22 09:43:26 +02:00
Dave Davenport
62d4f0cdad Make rofi compile happily under clang.
* Set features in configure.ac
    * use config.h file, instead of hardcoded _GNU_SOURCE
      in each c file.
    * Fix mix up unsigned/signed.
2014-08-22 09:27:45 +02:00
Dave Davenport
63e5f4e940 Small cleanup and fixes.
* Use g_strfreev
    * Use g_ascii*strto(u)ll
2014-08-21 19:14:01 +02:00
QC
9af1d490a6 Make Rasi a happy boy, add character width mode. 2014-08-11 20:21:29 +02:00
QC
1a47507f7b Remove custom strlcpy for g_strlcpy. 2014-08-09 11:49:37 +02:00
QC
0be8e7ffa9 Remove xdg as dependency, glib provides this. 2014-08-09 11:44:06 +02:00