mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 08:03:45 +01:00
Use correct dimensions for sc_adjust_window
This commit is contained in:
parent
2fbaded5b7
commit
1ff8f6eb22
@ -57,10 +57,10 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get window size */
|
/* get window size */
|
||||||
/* TODO: Get correct size of the view widget */
|
GtkAllocation allocation;
|
||||||
gint width;
|
gtk_widget_get_allocation(session->gtk.view, &allocation);
|
||||||
gint height;
|
gint width = allocation.width;
|
||||||
gtk_window_get_size(GTK_WINDOW(session->gtk.window), &width, &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;
|
||||||
|
Loading…
Reference in New Issue
Block a user