Removed pager debugging output
authorrodin <rodin@ddfedd41-794f-dd11-ae45-00112f111e67>
Tue, 18 May 2010 14:09:02 +0000 (14:09 +0000)
committerrodin <rodin@ddfedd41-794f-dd11-ae45-00112f111e67>
Tue, 18 May 2010 14:09:02 +0000 (14:09 +0000)
libchimara/pager.c
libchimara/window.c

index 294a6587aef1f5a84378f23b49772ca0924bffeb..2ab27554c955518fcce4ba89a9631f2482709b3a 100644 (file)
@@ -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);
 }
 
index 826eacd288a146ddeb06a51a2957331af9802d60..224db4808cf789c5b4f72b9f4e35c8bb2db982b0 100644 (file)
@@ -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;