Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2013-10-26 01:16:19 +02:00
parent 3629e3acd2
commit 834bc8f4c9

View file

@ -177,7 +177,7 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument,
gtk_widget_get_requisition(vscrollbar, &requisition);
scroll_width = requisition.width;
#endif
if (0 < scroll_width && (unsigned)scroll_width < width) {
if (0 < scroll_width && (unsigned int)scroll_width < width) {
width -= scroll_width;
scale = (double)(width - (pages_per_row - 1) * padding) /
(double)(pages_per_row * cell_width);