Commit graph

1880 commits

Author SHA1 Message Date
Dave Davenport
859a9c79d6 Indent the code. 2018-08-08 15:55:13 +02:00
Dave Davenport
4538303be6 [DRUN] Add option to show actions in drun.
Fixes: #836
2018-07-28 11:12:11 +02:00
Dave Davenport
e4d823774c Export icon fetcher header, remove nxd from icon-fetcher header. 2018-07-14 18:05:34 +02:00
Dave Davenport
d526ae2ec3 [IconFetcher] preload the user set icon theme 2018-07-14 11:54:00 +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
Maxim Baz
ff9b0f5ccd Add default shortcuts: Shift+BackSpace to delete previous char, Ctrl+Left/Right for word movements (#790)
* Support Shift+BackSpace by default to delete previous char

* Support Ctrl+Arrow for word movements
2018-06-13 14:15:31 +02:00
Dave Davenport
bdb6abef4a
Sorting cleanup (#816)
* Add `-sorting-method` option remove weird -sort-levenshtein.

* Fix test for updated cmdline options.

* Update manpage
2018-06-13 11:57:23 +02:00
Dave Davenport
9909fb3d71 More documentation fixes 2018-06-12 14:11:08 +02:00
Dave Davenport
d2576e9f1f More source code documentation updates 2018-06-12 12:31:34 +02:00
Dave Davenport
32b45c2d10 Fix documentation
* theme
* view
* textbox
2018-06-12 12:16:33 +02:00
Dave Davenport
b8592f8b99 Documentation updates.
* theme,
* view,
* textbox
* helper
2018-06-12 12:00:00 +02:00
Dave Davenport
b837c3fdff Change log domain from Utils.IconFetcher to Helpers.IconFetcher
Matches doxygen.
2018-06-12 11:47:03 +02:00
Dave Davenport
c856c1a8ab [Widget::Icon] Fix doxygen documentation in header file. 2018-06-12 11:28:31 +02:00
Dave Davenport
0633bc9dad Remove (unused) widget ref counting. 2018-06-12 10:08:29 +02:00
Dave Davenport
d4cfb5bb4b Fix crash in error dialog and tests. 2018-06-12 09:46:24 +02:00
Dave Davenport
c96ebfc2de Re-add icon-theme option. 2018-06-09 22:17:32 +02:00
Dave Davenport
441c511296
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.

* Make threadpool more generic usable.
* Add generic icon fetcher, that caches icons.
* Make DRUN use this fetcher.
* Add icon widget.

#809
2018-06-09 19:13:57 +02:00
Dave Davenport
a81e96fee7 Fix small memory leak in history. 2018-05-16 22:04:24 +02:00
Dave Davenport
2da5e5ee55 [TextBox] Add a reference to the cairo surface when displaying an icon. 2018-05-12 10:40:15 +02:00
Dave Davenport
3a726eabba
Fix how borders are drawn, so it looks correct when transparant. (#792)
* Try to fix borders a bit.

issue: #783

* Small cleanup to code, add comments to explain variables.
2018-04-08 10:19:43 +02:00
Dave Davenport
0f1717f829 [Script] Reset highlighting when reload view
Issue: #767
2018-02-08 17:56:31 +01:00
Dave Davenport
521843e9be
I749 (#766)
* [XCB] Use randr monitor API to get monitors.

Hopefully helps with issue #749.

* Add check for randr header version

* Fix API version check, and check the version of the server.

* Add some comments to the code.
2018-02-07 16:06:16 +01:00
Dave Davenport
ac29c537dd [SSH] Reload ssh when entry is deleted. 2018-02-06 21:03:07 +01:00
Quentin Glidic
5c5665efca
Revert "xcb: Add XKB_NEW_KEYBOARD_NOTIFY support"
This reverts commit e9532f584f.
It should not matter for rofi, which is not meant to stay around long,
and it messes with XTST (that tools like xscape use).

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2018-01-18 17:09:09 +01:00
Dave Davenport
7ad3ce25b1 [View] Added textboxes are set to autoheight and wrapping.
Fixes: #754
2018-01-14 11:47:04 +01:00
Dave Davenport
5ab0a642c9 [Theme] When reading double property, allow fallback to integer.
Otherwise the value '1' is not seen as valid entry, only '1.0'.

Fixes: #752
2018-01-14 11:21:02 +01:00
Quentin Glidic
101c4dcc26 bindings: Rework mouse bindings (#745)
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-12-26 10:10:40 +01:00
Quentin Glidic
14993a5a98
bindings: Fix double click delay
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-12-25 23:41:20 +01:00
Quentin Glidic
e9532f584f
xcb: Add XKB_NEW_KEYBOARD_NOTIFY support
Should not matter much for us, but not hard to support anyway.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-12-18 17:51:59 +01:00
Dave Davenport
5a20094777 [Script] Reduce scope and swap tests. (cppcheck) 2017-12-11 18:42:35 +01:00
Dave Davenport
6abc8c920c DRun: Allow to select based on comment field.
Fixes: #733
2017-12-09 19:55:39 +01:00
Quentin Glidic
53e0f957d0
drun: Early return if already initialized
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-12-09 10:34:11 +01:00
Quentin Glidic
58ed481198
xrmoptions: Use a switch where possible
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-12-09 10:34:11 +01:00
Dave Davenport
ae4ea622bb Fix (old style) fake-transparency and fake-background option.
- Broke and only setting it via theme worked.
2017-12-08 10:59:43 +01:00
Dave Davenport
f041313efb Allow theme to override width on box. 2017-12-08 10:48:22 +01:00
Dave Davenport
07cf9aabc7 Re-calculate size before showing. 2017-11-30 11:01:23 +01:00
Dave Davenport
f123deb37b When no new theme file present, don't print it in help. 2017-11-29 23:08:23 +01:00
Dave Davenport
10e2bc36cd Remove : from dmenu default prompt. 2017-11-28 17:53:45 +01:00
Edward Betts
79adae77d7 Correct spelling mistakes. (#722) 2017-11-23 18:41:52 +01:00
Quentin Glidic
955cdf5ba5
drun: Standardize debug messages
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-11-17 14:20:03 +01:00
Dave Davenport
9cd1e3fac2 Indent 2017-11-07 20:04:07 +01:00
Dave Davenport
4ac428bace [Combi] Add hide prefix option. 2017-11-07 20:03:42 +01:00
Dave Davenport
d9def87930 Allow height to be specified on window.
Fixes: #718
2017-11-06 20:49:26 +01:00
Dave Davenport
e689f2d98b Check result g_key_file_load_from_file to make coverity happy. 2017-11-05 21:32:43 +01:00
Dave Davenport
f992e0e21a Add the prompt colon to the default theme.
- Fix dumping of theme localization of the decimal-point. Force it to
be always a '.'.
2017-11-05 12:56:41 +01:00
Dave Davenport
bfd8e25436 Merge remote-tracking branch 'origin/master' into next 2017-11-02 21:42:37 +01:00
ironyman
85ecaea49a Fix -m -4 for xmonad (#683)
The problem is that xcb_translate_coordinates was being called to
translate the origin of the active_window (relative to active_window's
parent) from the coordinate space relative to active_window to the
coordinate space relative to root. The fix is to translate the origin of
the active_window (relative to active_window's parent) from the
coordinate space relative to active_window's parent to the coordinate
space relative to root.
2017-11-02 21:06:28 +01:00
Dave Davenport
f7d7fd4573
[DRun] Obey OnlyShowIn NotShowIn (#715)
* [DRun] Obey OnlyShowIn NotShowIn

* Replace g_strv_contains.
2017-11-02 21:05:07 +01:00
Dave Davenport
0ef2ad0771 Use PACKAGE_VERSION as it is known to both make and meson. 2017-10-31 19:36:13 +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
316de7ebeb Remove default-theme header file. 2017-10-31 19:00:31 +01:00
Quentin Glidic
3c37ba7a1c
meson: Add default theme GResource bits
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-31 18:16:08 +01:00
Dave Davenport
cc3d889fea First testing to use GResource to load default theme. 2017-10-31 18:00:24 +01:00
Dave Davenport
1dccdb302e Remove color from prompt, can be added in theme now.
fixed: #637
2017-10-30 21:40:13 +01: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
Quentin Glidic
af81a54adf
drun: Load absolute path icons properly
This was lost in the rework commit
4d8784cf85 and never added back.

Fixes #701

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-20 22:53:17 +02:00
Dave Davenport
5f1be779a2 Fixes parsing of non-existing fields.
Fixes: #700
2017-10-20 22:13:28 +02:00
Jakob M. Kjær
6f6115ee59 Fixed error misspell 2017-10-19 17:07:23 +02:00
Dave Davenport
fcaf8d8104 Fix color conversion from old ARGB to RGBA (new)
Fixes: #693
2017-10-19 07:48:48 +02:00
Dave Davenport
12e7b67ddd Make -plugin-path commandline flag be read before loading plugins 2017-10-16 18:25:16 +02:00
Quentin Glidic
8deedd8645
meson: Use libnkutils git-version support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-15 17:51:45 +02:00
Quentin Glidic
4e4e3917aa
gitmodules: Update libnkutils and libgwater
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-14 16:43:02 +02:00
Dave Davenport
bcb5844b6d [History] When getting history fields, do not parse order fields.
- This is the critical part of the code, most code and direct influence
on user.
2017-10-14 13:18:21 +02:00
Quentin Glidic
a723356d14
bindings: Fix API usage
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-12 19:53:15 +02:00
Dave Davenport
9ae62960c1 Indent files. 2017-10-05 17:45:50 +02:00
Dave Davenport
6ba31683c6 [DRun] Desktop id is not equal to application id. 2017-10-04 08:59:09 +02:00
Dave Davenport
2784959fc1 Allow maximum history size to be configured.
Fixes: #613
2017-10-03 19:59:35 +02:00
Dave Davenport
7929818be2 Change how DRUN history is implemented to fix: #579
- This solution will correctly obey all priority rules as set in desktop
files.
- history only affects the application being sorted at top, not affects
what desktop files refers to this.

Possible issue is speed of this solution, it adds a sorting. (hopefully
limited, as only history items need to be moved).
and several lookups through the whole list of applications.
This needs some profiling to see if it becomes an issue, several
solutions can be applied to make this faster again.
O(history_length*num_netries)+complexity(qsort)

Fixes: #579
2017-10-03 17:35:48 +02:00
Dave Davenport
91d88b1fd1 Rename tokenize to helper_tokenize 2017-10-01 10:51:02 +02:00
Dave Davenport
ebffe5503d Implement support for specifying negated match
- Prepending - inverts the matching result.
- Fix logic window/drun browser.
- Breaks API as argument token_match callback changed.
- Update tests.

Fixes: #665
2017-09-29 08:40:25 +02:00
Dave Davenport
a1ea3e268f Add more configuration options to script mode, getting closer to dmenu.
- urgent
 - active
 - prompt
 - message
2017-09-27 20:00:33 +02:00
Dave Davenport
8a0563634f Fix conversion of border color to new theme format. 2017-09-24 15:32:53 +02:00
Dave Davenport
0596f7c1a1 Correctly center and scale image, even if not rectangular 2017-09-21 19:27:04 +02:00
Dave Davenport
99f2a1a9bf Add @theme import command, that resets the current theme. 2017-09-18 17:48:13 +02:00
Dave Davenport
852d80fee3 Change WMQuirk logic
- Default is switch to desktop then select window.
- 2 quirks:
  - pango names.
  - do not switch.
2017-09-17 21:40:36 +02:00
Dave Davenport
ff4946edaf Cleanup compiler warnings.
- Unused var.
- Missing switch statement.
- Change fallthrough for older compilers.
2017-09-17 18:17:26 +02:00
Dave Davenport
96d8a23fde Fix crash on destroying script modi 2017-09-10 20:55:45 +02:00
Dave Davenport
f25288fc47 Merge remote-tracking branch 'origin/next' into bendemcss 2017-09-10 20:24:25 +02:00
Dave Davenport
19cc794018 Allow combi modi to use scripts from the modi list.
fixes: #668
2017-09-10 20:09:15 +02:00
Dave Davenport
56c373bffc Allow combi modi to use scripts from the modi list.
fixes: #668
2017-09-10 20:06:01 +02:00
Dave Davenport
a442dda19c Fix combi modi crashing on dynamic list sizes. 2017-09-10 19:55:14 +02:00
Dave Davenport
ec25204924 [RUN] Fix filter duplicates 2017-09-10 19:50:45 +02:00
Dave Davenport
97467fceff Update small part of doc. set hadle-color on scrollbar in default theme. 2017-09-09 22:09:02 +02:00
Dave Davenport
e01aefd773 Update shipped themes. 2017-09-09 14:50:23 +02:00
Dave Davenport
af369bd244 Update default theme and converter. 2017-09-09 12:07:11 +02:00
Dave Davenport
28ca3cb510 Fix tests. 2017-09-07 20:03:21 +02:00
Dave Davenport
acfc07a63e Fix Inherit keyword 2017-09-07 13:46:09 +02:00
Dave Davenport
72f050e2fc Move enabled into widget. 2017-09-07 08:52:30 +02:00
Dave Davenport
2a5cb6f621 Alias 'color' property name to 'text-color' 2017-09-07 08:35:09 +02:00
Dave Davenport
7c1ecb4707 Add support for multiple selectors. #dummy0, dummy1 {} 2017-09-06 23:11:03 +02:00
Dave Davenport
ae452271ac Fix sizing of listview rows. 2017-09-06 22:21:48 +02:00
Dave Davenport
0824a1e48c Inherit again, for modifiers. 2017-09-06 22:19:00 +02:00
Dave Davenport
6b43fed3aa use color, background-color and border-color 2017-09-06 19:02:09 +02:00
Dave Davenport
4dc9f29512 Add (untested) support for inherit keyword. 2017-09-06 18:26:04 +02:00
Dave Davenport
50998b8f04 Flatten hierarchy, don't inherit by default.
* add keyword inherit to language parser and theme structure.
2017-09-06 10:03:44 +02:00
Dave Davenport
9b0a430fd4 Indent. 2017-09-05 13:52:44 +02:00
Dave Davenport
ba296f9210 Add ch as size unit. 2017-09-05 13:52:21 +02:00
Dave Davenport
2b8179b684 Try to match line-padding in theme converter. 2017-09-04 22:46:50 +02:00
Dave Davenport
73827ce680 Only dump configuration changes, not theme in -dump-config. 2017-09-04 16:46:06 +02:00
Dave Davenport
508e39c3f3 Set cursor to end of input field.
Fixes: #662
2017-08-29 10:40:24 +02:00
Dave Davenport
3c52f15140 Move more enums to rofi-types.h 2017-08-18 11:38:54 +02:00
Dave Davenport
686be5856c Move PropertyType into rofi-types header and add check for names pairs. 2017-08-17 19:04:01 +02:00
Dave Davenport
b9ae0783c2 [Script] Parse the command as a commandline.
Fixes: #650
2017-08-14 21:33:12 +02:00
Dave Davenport
8a99f0b7bd [Script] Execute script + argument direction, do not pass run-command.
Fixes: #650
2017-08-14 17:28:25 +02:00
Dave Davenport
604779c444 Change order evaluation to make CPPCheck happy.
Code was not wrong.
2017-08-08 09:40:38 +02:00
Dave Davenport
a25a21c65e Improve error message a little when bindings collide.
Issue: #640
2017-07-25 17:09:53 +02:00
Dave Davenport
474e3b3d63 Slight tweak to default theme 2017-07-24 16:58:03 +02:00
Dave Davenport
fd146b0519 [DMenu] Do not show the Loading.. overlay when skipping loading stage. 2017-07-17 21:42:59 +02:00
Dave Davenport
2060059c46 [DMenu] If input is stdin and from a tty, do not read data.
- This stops rofi from blocking the whole desktop.
2017-07-17 15:01:02 +02:00
Dave Davenport
bca01f389d [DMenu] make rofi obey the dmenu -w flag.
- This is a dirty hack that needs to be done better in next release.
2017-07-13 08:21:15 +02:00
Dave Davenport
7b57985203 Add wid:{window id} to monitor option.
- By specifying the window id, rofi will assume that window to be the
monitor (for placing.)
 - syntax: wid:{monitor id}

Issue: #632
2017-07-12 12:27:45 +02:00
Dave Davenport
5996303c08 Convert old location format into new, so we are compatible again.
Fixes: #630
2017-07-11 19:41:24 +02:00
Dave Davenport
b5d6751ce3 [Dmenu] Allow multi-select in no-custom mode in dmenu.
Fixes: #596
2017-07-09 13:32:56 +02:00
Dave Davenport
ecc9bcc270 Re-add some of the old theme options, so theme converter use them.
- line margin
 - separator style.
 - fake transparency.
 - line padding.
 - scrollbar width
2017-07-06 18:20:32 +02:00
Dave Davenport
ef4a171fca Put Xfwm4 on the WM list that needs extra desktop change.
Work-around that makes sure desktop gets switchs when setting active
window.

Fixes: #624
2017-07-05 21:30:29 +02:00
Dave Davenport
d82231d0df Correctly switch to other RofiViewState.
* Triggers when error message occurs on handling action.
 * Reproducable with broken drun file. (give a non-existing path)
2017-07-05 00:14:28 +02:00
Quentin Glidic
727e3dc51a meson: Actually define TIMINGS if needed (#621)
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-07-04 15:35:49 +02:00
Dave Davenport
c7e8776c78 Add try exec test (#620)
* Add try exec test

* [DRun] Free after g_find_program_in_path
2017-07-04 13:38:26 +02:00
Dave Davenport
1d881a37d4 Merge remote-tracking branch 'origin/master' into next 2017-07-03 09:28:44 +02:00
Dave Davenport
7e1c02b04c [OldTheme] Re-add the padding/bw option. 2017-07-03 09:23:03 +02:00
Dave Davenport
5f21ab80a8 Do not do an expand path on Exec field of desktop file. (#618)
Fixes: #617
2017-07-02 19:34:31 +02:00
Dave Davenport
3590b95046 Do not do an expand path on Exec field of desktop file.
Fixes: #617
2017-07-02 11:33:02 +02:00
Dave Davenport
fcd9878a3b [Config] Remove stray printf, add compiler hints. 2017-06-27 09:28:33 +02:00
Dave Davenport
193dfa16bc [Config] quick hack to support lists in rasi configuration{} block. 2017-06-27 09:15:55 +02:00
Dave Davenport
5eb9fad4e3 [Helper] Fix render return success, not fail. 2017-06-26 20:24:33 +02:00
Dave Davenport
cf7d0866d5 [Helper] Add basic error checking to svg loading code. 2017-06-26 20:16:20 +02:00
Dave Davenport
3556f65198 Update DPI value once auto-detected. 2017-06-26 20:14:51 +02:00
Dave Davenport
ee9f5f71c1 [TextBox] Remove dead (commented code) 2017-06-26 20:14:31 +02:00
Dave Davenport
03d6ac4de3 Run indenter. 2017-06-25 20:25:17 +02:00
Dave Davenport
ea4328b921 [DRun] Add a small thread-pool for fetching icons. 2017-06-25 20:24:26 +02:00
Quentin Glidic
b9097dc488
drun: Preload icon themes
This will allow multi-thread icon loading.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-25 20:12:35 +02:00
Dave Davenport
e28b038d62 Check user data dir when looking for theme.
- set default textbox color to black.
2017-06-22 08:54:29 +02:00
Quentin Glidic
8f8c43e50d
xcb: Support back some weird X11 feature
Namely, key redirects, that play with the modifiers state at the
KEY_PRESS level.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-22 08:35:21 +02:00
Dave Davenport
69d32164c9 Fix test building. 2017-06-21 19:18:57 +02:00
Dave Davenport
77a4d97262 Add -dump-config option. 2017-06-21 08:19:47 +02:00
Dave Davenport
9af191de26 Fix tests by splitting types name into separate file. 2017-06-20 21:02:13 +02:00
Dave Davenport
da00848416 Do better error reporting on configuration entries in rasi format. 2017-06-20 18:10:18 +02:00
Dave Davenport
8375fbb513 Support a config.rasi configuration file in the new format 2017-06-20 17:56:27 +02:00
Dave Davenport
22aacb8f94 Add extra check for rofi_theme_parse_prepare_file 2017-06-14 16:19:17 +02:00
Dave Davenport
c851134411 [X11Helper] Add extra debug output when determining target monitor. 2017-06-14 08:26:53 +02:00
Dave Davenport
8f035bf919 Add extra checks so widgets do not get added twice. 2017-06-14 07:54:20 +02:00
Dave Davenport
02ef2f41ef Extend list of printable properties names to include list and orientation. 2017-06-13 21:42:03 +02:00
Dave Davenport
a3c1ff7d94 [helper] Fix type issue with variadic function.
*
https://www.securecoding.cert.org/confluence/display/c/DCL11-C.+Understand+the+type+issues+associated+with+variadic+functions
2017-06-13 10:16:40 +02:00
Dave Davenport
1b3ce23b80 Add missing null statement for fallthrough 2017-06-12 08:53:16 +02:00
Dave Davenport
26d9da7263 Position the overlay in the top right corner of the listview. 2017-06-12 08:17:28 +02:00
Dave Davenport
c53e6cc20c Make the compiler STFU about desired fallthroughs.
* https://dzone.com/articles/implicit-fallthrough-in-gcc-7
2017-06-12 07:47:44 +02:00
Dave Davenport
f102ed7295 Center align sidebar buttons by default. 2017-06-11 19:23:18 +02:00
Quentin Glidic
19a2d37df3
gitmodules: Update libnkutils
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-11 18:39:26 +02:00
Dave Davenport
067544120f Make function declaration match function prototype.
- Extra NULL check.
2017-06-09 09:18:17 +02:00
Dave Davenport
ad91f9a124 [TextBox] Calculate yalign based on actual side, not estimated size. 2017-06-08 08:46:16 +02:00
Dave Davenport
47c7518656 Fix parsing old themes from rofi-themes repo. 2017-06-07 20:41:43 +02:00
Dave Davenport
9fe67c1822 [TextBox] Remove TB_LEFT/CENTER/RIGHT replace with xalign/yalign. 2017-06-07 20:16:14 +02:00
Quentin Glidic
726d940eca
drun: Use the requested icon size for lookup
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:49:20 +02:00
Quentin Glidic
9b3a60928f
drun: Re-remove the context limitations for icon lookup
Some applications use Devices, Status or even Actions icons.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:42:54 +02:00
Quentin Glidic
3067f67fd1
drun: Use Adwaita and gnome as fallback themes
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:41:09 +02:00
Dave Davenport
07076d154a Load theme-str after loading fallback themes.
* If no theme loaded, try converting old theme.
 * If still no theme loaded, try default theme.
 * Then load modifications (theme-str option)
2017-06-07 07:53:33 +02:00
Dave Davenport
d33edaf09d [View] Do not set rofi fullheight when num lines eq 0 2017-06-06 17:49:24 +02:00
Dave Davenport
2a18a46b24 [View] Update sidebar buttons when we have no prompt. 2017-06-06 09:40:56 +02:00
Dave Davenport
a399adfa38 [TextBox] Fix centering with large padding 2017-06-06 09:28:36 +02:00
Dave Davenport
27d1da76b1 [TextBox] Fix yalign for cursor and icon. 2017-06-06 09:09:57 +02:00
Dave Davenport
1efb4dab6c Fix rendering of icons with single font size. 2017-06-04 16:08:34 +02:00
Dave Davenport
e12cf40e54 Change Listview::barview to Listview::layout 2017-06-03 21:46:21 +02:00
Dave Davenport
c29f897d69 Don't inline function that uses alloca. 2017-06-03 21:40:14 +02:00
Dave Davenport
68641a2143 Add new keywords to theme printer 2017-06-03 20:45:16 +02:00
Dave Davenport
9a62bfd172 Run indenter. 2017-06-03 20:35:50 +02:00
Dave Davenport
684211aba4 [View] Remove extra return. 2017-06-03 20:33:30 +02:00
Quentin Glidic
0adc0d7c08
view: Always create textbox with type
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-03 20:04:21 +02:00
Dave Davenport
a2620745e2 Fix sidebar in stock theme and sidebar button clicking 2017-06-03 19:56:02 +02:00
Dave Davenport
5bc8ea29a5 Fix converting x,y to cursor position. 2017-06-03 18:39:37 +02:00
Dave Davenport
8b7ceb9286 Fix textview clicking. 2017-06-03 18:34:26 +02:00
Dave Davenport
8875118334 Don't popup error dialog, pospone error message. 2017-06-03 16:06:32 +02:00
Dave Davenport
539172187f Don't depend on latest of glib. 2017-06-03 15:45:16 +02:00
Dave Davenport
35e2e2a1cb Merge branch 'master' of github:DaveDavenport/rofi 2017-06-03 15:38:32 +02:00
Dave Davenport
7c4709a43f Fix icon sizing, use font size. 2017-06-03 15:36:21 +02:00
Quentin Glidic
d88b1bd09b
xcb: Be sure not to leak xkb keymap/state
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-03 14:26:34 +02:00
Dave Davenport
044c55dd2f Fix icon offset.
- Always add more ()
2017-06-03 14:10:07 +02:00
Dave Davenport
78c6993750 Merge remote-tracking branch 'origin/master' into barview 2017-06-03 01:23:31 +02:00
Dave Davenport
9b0d1faacf Replace g_log by g_debug 2017-06-02 22:39:20 +02:00
Quentin Glidic
b0fe6d3c6a
drun: Actually use the icon theme setting
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 21:35:26 +02:00
Dave Davenport
c5f5477788 Check surface status when loading icon. 2017-06-02 21:34:07 +02:00
Dave Davenport
e49eb4d531 [Drun] Async don't rely on icon_name or free it 2017-06-02 19:11:18 +02:00
Dave Davenport
4cd2d87ed2 Merge remote-tracking branch 'origin/master' into barview 2017-06-02 18:52:28 +02:00
Dave Davenport
1be9438711 Fix icon_size and allow setting icon theme (for testing). 2017-06-02 18:37:03 +02:00
Dave Davenport
a43e4e5b12 Add small debug for unfound icons 2017-06-02 18:20:31 +02:00
Dave Davenport
1e0fb75189 Filter scanning same directory twice for same desktop files. 2017-06-02 18:13:11 +02:00
Dave Davenport
b3b01b1973 (re-implement) Do lazy loading for icons.
- Fetch only when requested
 - Fetch the right size, instead of estimation.
2017-06-02 17:36:06 +02:00
Dave Davenport
2578817db7 Don´t always fetch icon size 32, but estimated based on character height 2017-06-02 17:03:45 +02:00
Dave Davenport
4bd9828aa7 Remove index from box_add. 2017-06-02 16:53:39 +02:00
Dave Davenport
1d622aa59c Change ThemeHighlight to RofiHighlightColorStyle 2017-06-02 16:46:28 +02:00
Dave Davenport
3e46228074 Change Padding to RofiPadding 2017-06-02 16:44:16 +02:00
Dave Davenport
ea7d20d150 Change Orientation enum to RofiOrientation. 2017-06-02 16:34:52 +02:00
Dave Davenport
9915857a2e Change Distance struct to RofiDistance. 2017-06-02 16:25:47 +02:00
Dave Davenport
7352f1c2ba Change PixelWidth to RofiPixelUnit. 2017-06-02 16:21:05 +02:00
Dave Davenport
48bf1709b6 Rename HL_ to ROFI_HL_ and fix box test. 2017-06-02 16:09:20 +02:00
Quentin Glidic
76a6e312fe
xcb: Add startup notification support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:57:51 +02:00
Quentin Glidic
a6f51393d3
ssh: Add startup notification support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:57:28 +02:00
Quentin Glidic
3f8af0d7c5
run: Add startup notification support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:57:19 +02:00
Quentin Glidic
0644f99b64
drun: Add startup notification support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:56:59 +02:00
Quentin Glidic
22fbaa0b50
drun: Keep the app_id around
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:55:36 +02:00