mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 07:33:47 +01:00
Update style
This commit is contained in:
parent
42d3373558
commit
defbf056c1
@ -80,12 +80,12 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument,
|
|||||||
/* get window size */
|
/* get window size */
|
||||||
GtkAllocation allocation;
|
GtkAllocation allocation;
|
||||||
gtk_widget_get_allocation(session->gtk.view, &allocation);
|
gtk_widget_get_allocation(session->gtk.view, &allocation);
|
||||||
gint width = allocation.width;
|
gint width = allocation.width;
|
||||||
gint height = allocation.height;
|
gint height = allocation.height;
|
||||||
|
|
||||||
/* calculate total width and max-height */
|
/* calculate total width and max-height */
|
||||||
double total_width = 0;
|
double total_width = 0;
|
||||||
double max_height = 0;
|
double max_height = 0;
|
||||||
|
|
||||||
for (unsigned int page_id = 0; page_id < pages_per_row; page_id++) {
|
for (unsigned int page_id = 0; page_id < pages_per_row; page_id++) {
|
||||||
if (page_id == zathura->document->number_of_pages) {
|
if (page_id == zathura->document->number_of_pages) {
|
||||||
|
Loading…
Reference in New Issue
Block a user