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
1fbe59aa
Commit
1fbe59aa
authored
Mar 06, 2011
by
Moritz Lipp
Browse files
Implemented sc_rotate
parent
4eca9796
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.c
View file @
1fbe59aa
...
...
@@ -11,11 +11,13 @@ config_load_default(void)
if
(
!
Zathura
.
UI
.
session
)
return
;
int
int_value
=
0
;
/* general settings */
girara_mode_set
(
Zathura
.
UI
.
session
,
NORMAL
);
/* zathura settings */
int
int_value
=
10
;
int_value
=
10
;
girara_setting_add
(
Zathura
.
UI
.
session
,
"zoom-step"
,
&
int_value
,
INT
,
false
,
"Zoom step"
,
NULL
);
/* define default shortcuts */
...
...
shortcuts.c
View file @
1fbe59aa
...
...
@@ -133,6 +133,16 @@ sc_reload(girara_session_t* session, girara_argument_t* argument, unsigned int t
bool
sc_rotate
(
girara_session_t
*
session
,
girara_argument_t
*
argument
,
unsigned
int
t
)
{
if
(
session
==
NULL
||
Zathura
.
document
==
NULL
)
{
return
false
;
}
/* update rotate value */
Zathura
.
document
->
rotate
=
(
Zathura
.
document
->
rotate
+
90
)
%
360
;
/* render all pages again */
render_all
();
return
false
;
}
...
...
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