Mercurial > pidgin
comparison src/gtkimhtml.c @ 5282:2d7f9a092b81
[gaim-migrate @ 5654]
Ka-Hing Cheung (bsponline) writes:
" End result, pressing shift+pgup|pgdown works again."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 02 May 2003 03:18:13 +0000 |
parents | 1c739f2ce94f |
children | ead927e2543f |
comparison
equal
deleted
inserted
replaced
5281:eae93f3e46bd | 5282:2d7f9a092b81 |
---|---|
1366 gtk_text_buffer_delete(imhtml->text_buffer, &start, &end); | 1366 gtk_text_buffer_delete(imhtml->text_buffer, &start, &end); |
1367 } | 1367 } |
1368 | 1368 |
1369 void gtk_imhtml_page_up (GtkIMHtml *imhtml) | 1369 void gtk_imhtml_page_up (GtkIMHtml *imhtml) |
1370 { | 1370 { |
1371 | 1371 GdkRectangle rect; |
1372 } | 1372 GtkTextIter iter; |
1373 void gtk_imhtml_page_down (GtkIMHtml *imhtml){} | 1373 |
1374 gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); | |
1375 gtk_text_view_get_iter_at_location(GTK_TEXT_VIEW(imhtml), &iter, rect.x, | |
1376 rect.y - rect.height); | |
1377 gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(imhtml), &iter, 0, TRUE, 0, 0); | |
1378 | |
1379 } | |
1380 void gtk_imhtml_page_down (GtkIMHtml *imhtml) | |
1381 { | |
1382 GdkRectangle rect; | |
1383 GtkTextIter iter; | |
1384 | |
1385 gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); | |
1386 gtk_text_view_get_iter_at_location(GTK_TEXT_VIEW(imhtml), &iter, rect.x, | |
1387 rect.y + rect.height); | |
1388 gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(imhtml), &iter, 0, TRUE, 0, 0); | |
1389 } | |
1374 | 1390 |
1375 static gint | 1391 static gint |
1376 gtk_imhtml_tip_paint (GtkIMHtml *imhtml) | 1392 gtk_imhtml_tip_paint (GtkIMHtml *imhtml) |
1377 { | 1393 { |
1378 PangoLayout *layout; | 1394 PangoLayout *layout; |