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
903dae55
Commit
903dae55
authored
Nov 05, 2013
by
Sebastian Ramacher
Browse files
Get the correct adjustment
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
403d867c
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura.c
View file @
903dae55
...
...
@@ -700,9 +700,9 @@ document_open(zathura_t* zathura, const char* path, const char* password,
GtkAdjustment
*
vadjustment
=
gtk_scrolled_window_get_vadjustment
(
GTK_SCROLLED_WINDOW
(
zathura
->
ui
.
session
->
gtk
.
view
));
const
unsigned
int
view_width
=
(
unsigned
int
)
floor
(
gtk_adjustment_get_page_size
(
v
adjustment
));
const
unsigned
int
view_width
=
(
unsigned
int
)
floor
(
gtk_adjustment_get_page_size
(
h
adjustment
));
zathura_document_set_viewport_width
(
zathura
->
document
,
view_width
);
const
unsigned
int
view_height
=
(
unsigned
int
)
floor
(
gtk_adjustment_get_page_size
(
h
adjustment
));
const
unsigned
int
view_height
=
(
unsigned
int
)
floor
(
gtk_adjustment_get_page_size
(
v
adjustment
));
zathura_document_set_viewport_height
(
zathura
->
document
,
view_height
);
/* create blank pages */
...
...
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