mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:56:00 +01:00
Some clean up
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
7b9fd65ce6
commit
4350053956
1 changed files with 5 additions and 5 deletions
10
config.c
10
config.c
|
@ -109,7 +109,6 @@ config_load_default(zathura_t* zathura)
|
|||
int int_value = 0;
|
||||
float float_value = 0;
|
||||
bool bool_value = false;
|
||||
bool inc_search = true;
|
||||
char* string_value = NULL;
|
||||
girara_session_t* gsession = zathura->ui.session;
|
||||
|
||||
|
@ -193,8 +192,9 @@ config_load_default(zathura_t* zathura)
|
|||
girara_setting_add(gsession, "open-first-page", &bool_value, BOOLEAN, false, _("Always open on first page"), NULL, NULL);
|
||||
bool_value = false;
|
||||
girara_setting_add(gsession, "nohlsearch", &bool_value, BOOLEAN, false, _("Highlight search results"), cb_nohlsearch_changed, NULL);
|
||||
inc_search = false;
|
||||
girara_setting_add(gsession, "incremental-search", &inc_search, BOOLEAN, false, _("Enable incremental search"), cb_incsearch_changed, NULL);
|
||||
#define INCREMENTAL_SEARCH false
|
||||
bool_value = INCREMENTAL_SEARCH;
|
||||
girara_setting_add(gsession, "incremental-search", &bool_value, BOOLEAN, false, _("Enable incremental search"), cb_incsearch_changed, NULL);
|
||||
bool_value = true;
|
||||
girara_setting_add(gsession, "abort-clear-search", &bool_value, BOOLEAN, false, _("Clear search results on abort"), NULL, NULL);
|
||||
bool_value = false;
|
||||
|
@ -389,8 +389,8 @@ config_load_default(zathura_t* zathura)
|
|||
girara_inputbar_command_add(gsession, "hlsearch", NULL, cmd_hlsearch, NULL, _("Highlight current search results"));
|
||||
girara_inputbar_command_add(gsession, "version", NULL, cmd_version, NULL, _("Show version information"));
|
||||
|
||||
girara_special_command_add(gsession, '/', cmd_search, inc_search, FORWARD, NULL);
|
||||
girara_special_command_add(gsession, '?', cmd_search, inc_search, BACKWARD, NULL);
|
||||
girara_special_command_add(gsession, '/', cmd_search, INCREMENTAL_SEARCH, FORWARD, NULL);
|
||||
girara_special_command_add(gsession, '?', cmd_search, INCREMENTAL_SEARCH, BACKWARD, NULL);
|
||||
|
||||
/* add shortcut mappings */
|
||||
girara_shortcut_mapping_add(gsession, "abort", sc_abort);
|
||||
|
|
Loading…
Reference in a new issue