src/gtkhtml.c

changeset 1119
403e81fe3633
parent 1117
fcb6e7efcc0d
child 1244
373945408fa3
equal deleted inserted replaced
1118:b3f6e288ba30 1119:403e81fe3633
3208 title = 0, 3208 title = 0,
3209 height; 3209 height;
3210 static struct font_state *current = NULL, 3210 static struct font_state *current = NULL,
3211 *tmp; 3211 *tmp;
3212 static struct font_state def_state = { 3, 0, 0, "", NULL, NULL, NULL }; 3212 static struct font_state def_state = { 3, 0, 0, "", NULL, NULL, NULL };
3213 gboolean scrolldown = TRUE;
3214
3215 if (html->vadj->upper > (html->vadj->value + html->vadj->page_size))
3216 scrolldown = FALSE;
3213 3217
3214 if (text == NULL) { 3218 if (text == NULL) {
3215 bold = 0; 3219 bold = 0;
3216 italic = 0; 3220 italic = 0;
3217 fixed = 0; 3221 fixed = 0;
3697 g_free(ws); 3701 g_free(ws);
3698 g_free(tag); 3702 g_free(tag);
3699 3703
3700 gdk_window_get_size(html->html_area, NULL, &height); 3704 gdk_window_get_size(html->html_area, NULL, &height);
3701 area.height = height; 3705 area.height = height;
3702 gtk_adjustment_set_value(html->vadj, html->vadj->upper - area.height); 3706 if (scrolldown)
3707 gtk_adjustment_set_value(html->vadj, html->vadj->upper - area.height);
3703 3708
3704 return; 3709 return;
3705 } 3710 }
3706 3711
3707 3712

mercurial