From b80c7c9358f022e5e99f7fcd0ccb048b0ce7b7d3 Mon Sep 17 00:00:00 2001 From: Marijn van Vliet Date: Tue, 18 May 2010 14:09:02 +0000 Subject: [PATCH] Removed pager debugging output git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@278 ddfedd41-794f-dd11-ae45-00112f111e67 --- libchimara/pager.c | 7 ++----- libchimara/window.c | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/libchimara/pager.c b/libchimara/pager.c index 294a658..2ab2755 100644 --- a/libchimara/pager.c +++ b/libchimara/pager.c @@ -32,8 +32,10 @@ move_pager_and_get_scroll_distance(GtkTextView *textview, gint *view_height, gin gtk_text_view_get_iter_location(textview, &newpager, &pagerpos); gtk_text_view_get_iter_location(textview, &end, &endpos); + /* g_printerr("View height = %d\n", visiblerect.height); g_printerr("End - Pager = %d\n", endpos.y - pagerpos.y); + */ *view_height = visiblerect.height; *scroll_distance = endpos.y - pagerpos.y; @@ -43,7 +45,6 @@ move_pager_and_get_scroll_distance(GtkTextView *textview, gint *view_height, gin static void start_paging(winid_t win) { - printf("Start paging\n"); win->currently_paging = TRUE; g_signal_handler_unblock(win->widget, win->pager_expose_handler); g_signal_handler_unblock(win->widget, win->pager_keypress_handler); @@ -53,7 +54,6 @@ start_paging(winid_t win) static void stop_paging(winid_t win) { - printf("Stop paging\n"); win->currently_paging = FALSE; g_signal_handler_block(win->widget, win->pager_expose_handler); g_signal_handler_block(win->widget, win->pager_keypress_handler); @@ -65,7 +65,6 @@ gboolean pager_check(gpointer data) { - printf("pager check (idle)...\n"); winid_t win = (winid_t) data; /* Move the pager to the last visible character in the buffer */ @@ -177,7 +176,6 @@ pager_on_expose(GtkTextView *textview, GdkEventExpose *event, winid_t win) gboolean pager_after_expose_event(GtkTextView *textview, GdkEventExpose *event, winid_t win) { - printf("pager check (expose)...\n"); g_idle_add(pager_check, win); return FALSE; } @@ -185,7 +183,6 @@ pager_after_expose_event(GtkTextView *textview, GdkEventExpose *event, winid_t w void pager_after_size_request(GtkTextView *textview, GtkRequisition *requisition, winid_t win) { - printf("pager check (size request)...\n"); g_idle_add(pager_check, win); } diff --git a/libchimara/window.c b/libchimara/window.c index 826eacd..224db48 100644 --- a/libchimara/window.c +++ b/libchimara/window.c @@ -586,8 +586,7 @@ glk_window_open(winid_t split, glui32 method, glui32 size, glui32 wintype, /* Create the pager position mark; it stands for the last character in the buffer that has been on-screen */ - GtkTextMark *pager_position = gtk_text_buffer_create_mark(textbuffer, "pager_position", &end, TRUE); - gtk_text_mark_set_visible(pager_position, TRUE); + gtk_text_buffer_create_mark(textbuffer, "pager_position", &end, TRUE); } break; -- 2.30.2