From: rodin Date: Tue, 18 May 2010 14:09:02 +0000 (+0000) Subject: Removed pager debugging output X-Git-Tag: v0.9~187 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=38cdc1b4f47ed8632ac9ea7559e5cb0e021d8477;p=projects%2Fchimara%2Fchimara.git Removed pager debugging output --- 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;