Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
fa6bc5a2
Commit
fa6bc5a2
authored
Dec 11, 2011
by
Sebastian Ramacher
Browse files
set default values before loading the first config file
parent
864dc5bd
Changes
2
Show whitespace changes
Inline
Side-by-side
shortcuts.c
View file @
fa6bc5a2
...
...
@@ -210,6 +210,7 @@ sc_rotate(girara_session_t* session, girara_argument_t* UNUSED(argument),
zathura
->
document
->
rotate
=
(
zathura
->
document
->
rotate
+
90
)
%
360
;
/* render all pages again */
/* XXX: we don't need to rerender, only to resize the widgets and redraw */
render_all
(
zathura
);
return
false
;
...
...
zathura.c
View file @
fa6bc5a2
...
...
@@ -124,6 +124,9 @@ zathura_init(int argc, char* argv[])
/* load plugins */
zathura_document_plugins_load
(
zathura
);
/* configuration */
config_load_default
(
zathura
);
/* load global configuration files */
girara_list_t
*
config_dirs
=
girara_split_path_array
(
girara_get_xdg_path
(
XDG_CONFIG_DIRS
));
ssize_t
size
=
girara_list_size
(
config_dirs
)
-
1
;
...
...
@@ -137,10 +140,6 @@ zathura_init(int argc, char* argv[])
config_load_file
(
zathura
,
GLOBAL_RC
);
/* configuration */
config_load_default
(
zathura
);
/* load local configuration files */
char
*
configuration_file
=
g_build_filename
(
zathura
->
config
.
config_dir
,
ZATHURA_RC
,
NULL
);
config_load_file
(
zathura
,
configuration_file
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment